Berkeley CSUA MOTD:Entry 21667
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2001/6/28-29 [Computer/SW/Languages/C_Cplusplus] UID:21667 Activity:high
6/28    The gcc man page says:
       -trigraphs
              Support  ANSI  C trigraphs.  The `-ansi' option im-
              plies `-trigraphs'.
        What are ANSI C trigraphs?
        \_ the cpp man page says:
           -trigraphs
              Process ANSI standard trigraph sequences.  These are
              three-character sequences, all starting with `??', that are
              defined by ANSI C to stand for single characters.  For
              example, `??/' stands for `\', so `'??/n'' is a character
              constant for a newline.  Strictly speaking, the GNU C
              preprocessor does not support all programs in ANSI Standard
              C unless `-trigraphs' is used, but if you ever notice the
              difference it will be with relief.

           You don't want to know any more about trigraphs.
        \_ They were added to ANSI C in order to add support for
           characters such as '{','}','[',']','#' which aren't
           available on european keyboards (they use the keys
           that were ment for these characters for thier accented
           characters). If the stupid europeans could get thier
           act together and learn english and use normal computers
           like the rest of humanity we would never have had to
           deal with this bullshit.