Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 31 Jan 2012 12:17:18 -0600 Message-ID: <4F283030.2E84@mindspring.com> Date: Tue, 31 Jan 2012 13:17:20 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: trigraphs, yecch References: <4f2808f4.648026530@text.giganews.com> <4F28113A.72C5@mindspring.com> <0.a671176e64755b2722e5.20120131164745GMT.87vcnrq0ni.fsf@bsb.me.uk> <4f2821ac.654354243@text.giganews.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.217.106 X-Trace: sv3-crXQ1zpE0xRtKqzFvr3/tAqxzwJe/scH6Knt8tGcIHiJugIfKWOZiHMx7ZVWHRiaQpHdq7KX0NYiJZe!zb9sl9bCZr5mjdsHZctR2ZYmkqHBSVcJGAykRK3depMKzPJsZJk7GVZOao8lLi5nC0fV9Lb5FRXP!Jaun5gRBh2Q= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1986 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:16521 Richard Harter wrote: > That doesn't seem right to me, but what do I know. As I read that > there are two strings there, to wit "(??" and "?).%s.%s". Are you > telling me that two adjacent strings will be merged into one string. > If that's so I'm certainly surprised and I've learned something quite > unexpected. Does this mean I can write printf("x""y") and I will get > "xy" as an output? /* ** You can also use this feature ** to place the value of a macro inside a string. */ #include #define macro_value the value of a macro #define str(s) # s #define xstr(s) str(s) int main(void) { puts( "You can also use this feature\nto place " xstr(macro_value) " inside a string." ); return 0; } -- pete