DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
C language compilers

Trigraph sequences

Trigraph sequences are three-character sequences that are replaced by a corresponding single character in Translation Phase 1, as follows:

??= # ??( [ ??< {
??/ \ ??) ] ??> }
??' ^ ??! | ??- ~
Digraph sequences behave the same as their corresponding single characters in all respects except fo rtheir spelling. Thus

   <:  :>  <%  >%  %:  %:%:
are equivalent to
   [   ]   {   }   #   ##
respectively.

No other such sequences are recognized. The trigraph sequences provide a way to specify characters that are missing on some terminals, but that the C language uses.


Next topic: Preprocessing tokens
Previous topic: Preprocessing

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004