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: David Kelly
Subject: Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?
Date: Thu, 5 Feb 2009 12:43:57 -0600
User-agent: Mutt/1.4.2.3i

On Thu, Feb 05, 2009 at 07:13:18PM +0100, Vincent Trouilliez wrote:
> > 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 ?

Haven't gone back to the referenced text but perhaps the ? was intended
as wildcard character indicating that any character can be escaped as
itself when in doubt?

-- 
David Kelly N4HHE, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.




reply via email to

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