From: Andy Parkins Date: Mon, 19 Feb 2007 11:02:53 GMT Subject: Re: Numeric constants as strings Message-ID: <200702191103.00431.andyparkins@gmail.com> In-Reply-To: On Monday 2007 February 19 10:04, Mark Wooding wrote: > #define STRINGIFY(foo) STRINGIFY_REALLY(foo) > #define STRINGIFY_REALLY(foo) #foo > printf("%-" STRINGIFY(HASH_WIDTH_ASCII) "s %s%s (%d subtrees)\n", Ah ha! Magical. You've taught me something there. Thanks. Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com