Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!abvax!iccgcc!browns From: browns@iccgcc.decnet.ab.com (Stan Brown) Newsgroups: comp.lang.c Subject: Re: Question with cpp and token pasting Message-ID: <3050.27a97a14@iccgcc.decnet.ab.com> Date: 1 Feb 91 19:24:20 GMT References: <1991Jan30.232740.1697267@locus.com> Distribution: na Lines: 19 In article <1991Jan30.232740.1697267@locus.com>, bringo@locus.com (Bob Ringo) writes: > Hi, this is probably a simple task, but I haven't figured it out. > I'd like to do the following: > > #define A "Good" > #define B "Morning" > #define C /* the concatenation of A and B */ Assuming A and B will always be literal strings, you can use either #define C A B or #define C(x,y) x y When two character strings are separated only by white space, they aare always concatenated. Hey--this is all my opinion, nobody else's. Rely on it at your peril. email: browns@ab.com -or- browns@iccgcc.decnet.ab.com Stan Brown, Oak Road Systems, Cleveland, Ohio, USA +1 216 371 0043