avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex


From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?
Date: Thu, 5 Feb 2009 19:13:18 +0100

> ISO C99, section 6.4.4.4, p3:
> the question-mark ?, [..] is representable according to the following table 
> of escape
> sequences: question mark? \?

Interesting. I wonder why the standard deeemd it necessary to provide
an escape sequence for the question mark ?
I do happen to have question marks in my strings, but didn't know about
the escape sequence so didn't use it, yet the compiler didn't complain,
and simply put the question mark ASCII code in the string, as I
expected.

I understand they phrased it to mean a "possibility", not an
obligation, but why provide it if they didn't think there were at least
one use case where it would be mandatory ?

Ideas ?

--
Vince




reply via email to

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