Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!spool.mu.edu!munnari.oz.au!bruce!labtam!cnw01!nigel From: nigel@cnw01.storesys.coles.oz.au (Nigel Harwood) Newsgroups: comp.lang.c Subject: ANSI CPP string concatenation Keywords: ANSI CPP string concatenation Message-ID: <1271@cnw01.storesys.coles.oz.au> Date: 19 Jun 91 06:01:11 GMT Article-I.D.: cnw01.1271 Organization: Coles Myer Ltd., Melbourne, Australia Lines: 20 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@cnw01.storesys.coles.oz.au >> << FAX: +61 3 829 6886 >>