Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!cmcl2!rna!dan From: dan@rna.UUCP Newsgroups: net.lang.c Subject: String and constant #defines, Summation Message-ID: <222@rna.UUCP> Date: Thu, 1-Mar-84 15:32:44 EST Article-I.D.: rna.222 Posted: Thu Mar 1 15:32:44 1984 Date-Received: Sat, 3-Mar-84 09:20:45 EST Lines: 24 Hi, Although among the number of responses I received, none were able to suggest a way around the... #define MSIZE 100 int msize = MSIZE; char *smsize = "MSIZE"; where I would like smsize to contain "100". However rlgvax!jack made a suggestion that is probably satisfactory: #define MSIZE(macro) macro(100) #define string(x) "x" #define number(x) x int msize = MSIZE(number); char *smsize = MSIZE(string); Thanks. Cheers, Dan Ts'o ...cmcl2!rna!dan