Re: Numeric constants as strings
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Feb 19, 2007, 11:02 UTC
- Message-ID
- <200702191103.00431.andyparkins@gmail.com>
- In-Reply-To
- <slrnetitgs.sbe.mdw@metalzone.distorted.org.uk>
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