Path: utzoo!mnetor!uunet!husc6!hao!gatech!mcnc!rti!xyzzy!kulik From: kulik@xyzzy.UUCP (Al Kulik) Newsgroups: comp.lang.c Subject: Re: macros with parameters in MSC 5.0 Message-ID: <628@xyzzy.UUCP> Date: 19 Feb 88 17:25:51 GMT References: <11879@brl-adm.ARPA> <2631@haddock.ISC.COM> <898@PT.CS.CMU.EDU> Reply-To: kulik@xyzzy.UUCP () Organization: Data General Corporation, Research Triangle, NC Lines: 18 >In article <898@PT.CS.CMU.EDU> edw@IUS1.CS.CMU.EDU (Eddie Wyatt) writes: > Does this imply that a macro parameter will nolonger be expanded in >strings too? That's right. You have to use the '#' operator, e.g. #define str(s) # s . . . char *p = str(somestring); which results in char *p = "somestring"; -- Al Kulik, Data General. Uucp: ...!mcnc!rti!xyzzy!kulik Arpa/Csnet: kulik@dg-rtp.DG.COM