home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18661 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.0 KB

  1. Path: sparky!uunet!sdrc!thor!scjones
  2. From: scjones@thor.sdrc.com (Larry Jones)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Questions about token merging and trigraphs
  5. Message-ID: <2414@sdrc.COM>
  6. Date: 18 Dec 92 18:54:08 GMT
  7. References: <42098@pprg.eece.unm.edu.pprg.unm.edu> <1TA04E3@cdis-1.compu.com> <1992Dec18.162011.374@taumet.com>
  8. Sender: news@sdrc.COM
  9. Lines: 17
  10.  
  11. > I wrote:
  12. >    const char delims[5][4] = {
  13. >        { '?', '?', '!', '\0' }, ...
  14.  
  15. In article <1992Dec18.162011.374@taumet.com>, steve@taumet.com (Steve Clamage) writes:
  16. > Actually, it's easier than that.
  17. > You can replace, for example, "??!" with "?\?!".
  18. > The escaped second question mark breaks up the trigraph.
  19.  
  20. Yep, you're right.  I was thinking that \? was not well-defined in
  21. K&R C, but I just checked and found that I was mistaken.
  22. ----
  23. Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  24. larry.jones@sdrc.com  or  ...uunet!sdrc!larry.jones
  25. That's one of the remarkable things about life.  It's never so
  26. bad that it can't get worse. -- Calvin
  27.