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