Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!216.196.98.142.MISMATCH!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 10:05:10 -0600 Message-ID: <4F28113A.72C5@mindspring.com> Date: Tue, 31 Jan 2012 11:05:14 -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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.223.147 X-Trace: sv3-VAMQINu8YltOBTftf+Hi8n25HSrFXii2kmVOGUIHJV+ajfSzRXeM0cQHuuL2055IkKd0r32AGhz5qkc!5zB43yDBTiSD+Yk7U5RMacjDT1pctbUT/awlsafq8KhY9sgPRsoEqse49laiXdc/o+vvTLmeHCDc!7zPyuk1CHV8= 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: 1639 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:16499 Richard Harter wrote: > > The other day I wanted to put three successive question marks in a > string. Frex, "(???).%s.%s". My trusty antique gcc compiler > converted the last two '?'s into a ']' along with a warning that it > was doing a trigraph conversion. > > Now, me, I know from nothing about trigraphs - never used them, hope > never to use them - so I was caught by surprise. My elderly copy of > K&R described them but I didn't see anything about getting around > them. > > So. How is one supposed to get three successive question marks into a > string? > "(?""?""?).%s.%s\n" -- pete