Question with cpp and token pasting
Roy Johnson
rjohnson at shell.com
Fri Feb 1 04:18:21 AEST 1991
In article <1991Jan30.232740.1697267 at locus.com> bringo at 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
More information about the Comp.lang.c
mailing list