Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.lang.c Subject: Re: You _CAN_ "stringize" tokens in (some) K&R pre-processors Message-ID: <18148@crdgw1.crd.ge.com> Date: 2 Apr 91 15:05:22 GMT References: <323@secola.Columbia.NCR.COM> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Distribution: comp.lang.c Lines: 13 I thought just about all K&R1 based compilers expanded formal arguments within quotes, so the following would work: #define STRINGIZE(x) "x" STRINGIZE(foo) ==> "foo" At least it works on SunOS cc. ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com