ANSI CPP string concatenation
Nigel Harwood
nigel at cnw01.storesys.coles.oz.au
Wed Jun 19 16:01:11 AEST 1991
Does anyone know if you can append strings in ANSI C.
For example I want a macro which appends one of its numeric
arguments to a string coded into the marco.
#define APPEND(x,v) { donothing+x = v; }
I know that the '+' isn't what I'm after but using whatever the method
turns out to be what I want it to generate from APPEND(1,123) is:
{ donothing1 = 123; }
Anyone know the secret ?
Regards
--
<<<<<<<<<<<<<<<<<<<<<<<<< Nigel Harwood >>>>>>>>>>>>>>>>>>>>>>>>>>>
<< Post: Coles Myer Ltd, PO Box 2000 Tooronga 3146, Australia >>
<< Phone: +61 3 829 6090 E-mail: nigel at cnw01.storesys.coles.oz.au >>
<< FAX: +61 3 829 6886 >>
More information about the Comp.lang.c
mailing list