Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: New 'n' Improved comp.lang.c FAQ List Message-ID: <1991Apr04.023548.28947@ima.isc.com> Date: 4 Apr 91 02:35:48 GMT References: <910401.0xf001@etiquette.uu.net> <1991Apr1.203024.19679@unlv.edu> <31946@shamash.cdc.com> <1780@mti.mti.com> <11742@dog.ee.lbl.gov> Sender: usenet@ima.isc.com Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 10 In article <11742@dog.ee.lbl.gov> torek@elf.ee.lbl.gov (Chris Torek) writes: >You must use two levels of macro evaluation: > #define XQUOTE(a) QUOTE(a) /* expanded quote */ > static char retbuf[sizeof(XQUOTE(INT_MIN))]; But you still don't necessarily get the right answer, since INT_MIN might not be implemented as a simple digit-string. If defines INT_MIN as (1<<31), the sizeof() will only return 8. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint