Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ogicse!littlei!intelisc!mojy From: mojy@iSC.intel.com (Mojy Mirashrafi) Newsgroups: comp.lang.c Subject: Macros in ANSI C Message-ID: <1172@intelisc.isc.intel.com> Date: 1 Mar 91 17:27:19 GMT Sender: news@isc.intel.com Organization: Supercomputer Systems Division, Intel Corp. Lines: 15 Nntp-Posting-Host: teapot Originator: mojy@teapot Here is my question: In the old C if you wanted to define a macro to convert its parameter to a char you would write a macro like this: #define conv(s) 's' and if you used "conv(X)" in your code you would get 'X'. In ANSI C the "'" prevents evaluation of the enclosed characters. The above macro will expand to: 's'. Is there a way to escape the "'"s, in ANSI C? Thanx.