[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How to suppres trigraph warning messages?

From: Alan Kilian
Subject: Re: [avr-gcc-list] How to suppres trigraph warning messages?
Date: Mon, 15 Aug 2005 14:51:21 -0500

On Mon, 2005-08-15 at 15:42 -0400, Bob Paddock wrote:
> I have a string:
> char date[] = "??/??/??";

    This webpage says something about trigraphs:

        "In a string constant, you can prevent a sequence of question 
         marks from being confused with a trigraph by inserting a 
         backslash between the question marks. "(??\?)" is the string 
         (???), not (?]. Traditional C compilers do not recognize this 

    I really don't know if that help or not.
    So maybe you need:

    char date[] = "?\?/?\?/?\?";

    Ooooh, that's hard on the eyes!


- Alan Kilian <kilian(at)bobodyne.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]