How to write Trigraph like character sequences in a string (was:Re: to "OR" or not to "OR")

minar at reed.edu minar at reed.edu
Fri May 31 12:58:02 AEST 1991


>>> What if I want to use the sequence "??!" within a string?

easy. Use a compiler that is fully ANSI, but lets you turn off
trigraphs.  At least for compilers in America, that's more or less the
norm.. the Gnu compiler specifically requires you to turn trigraphs ON
(I think - that might have changed) and Borland doesn't even have
trigraphs in its compiler anymore, there's a program called
trigraph.com that does the translation for you, so just don't execute
it! Oh, I guess its not conforming code, but does anyone really use
trigraphs? Really, anyone? If I had a keyboard that wasn't fully C
capable, I'd certainly use something, but it wouldn't be trigraphs,
unless I had to ship the code elsewhere..



More information about the Comp.std.c mailing list