Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!shell!shell!rjohnson From: rjohnson@shell.com (Roy Johnson) Newsgroups: comp.lang.c Subject: Re: Question with cpp and token pasting Message-ID: Date: 31 Jan 91 17:18:21 GMT References: <1991Jan30.232740.1697267@locus.com> Sender: usenet@shell.shell.com (USENET News System) Distribution: na Organization: Shell Development Company, Bellaire Research Center, Houston, TX Lines: 19 In-Reply-To: bringo@locus.com's message of 30 Jan 91 23:27:40 GMT In article <1991Jan30.232740.1697267@locus.com> bringo@locus.com (Bob Ringo) writes: >I'd like to do the following: >#define A "Good" >#define B "Morning" >#define C>/* the concatenation of A and B */ In ANSI, you could just do #define C A B because juxtaposition concatenates strings. In Sun C, there is no good way to do this. -- ======= !{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!rjohnson ======= "If he exploded, all of Manhattan would be talking in high, squeaky voices for months!" "Cool." -- When I Was Short Roy Johnson, Shell Development Company