Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!mejac!orchard.la.locus.com!fafnir.la.locus.com!bringo From: bringo@locus.com (Bob Ringo) Newsgroups: comp.lang.c Subject: Question with cpp and token pasting Message-ID: <1991Jan30.232740.1697267@locus.com> Date: 30 Jan 91 23:27:40 GMT Distribution: na Organization: Locus Computing Corp, Los Angeles Lines: 23 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 */ --I tried the following, but it didn't work. #define paste(x,y) x ## y #define A "Good" #deifne B "Morning" #define C paste(A,B) Any Hints? -- Bob Ringo Locus Computing Corporation bringo@locus.com