[Top][All Lists]
[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.
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, (continued)
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Chris Kuethe, 2009/02/05
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Schwichtenberg, Knut, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Chris Kuethe, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Juergen Harms, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, David Kelly, 2009/02/05
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Dave Hansen, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, lucio, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, Jim Brain, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?,
David Kelly <=
- RE: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Dave Hansen, 2009/02/05
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Joerg Wunsch, 2009/02/09
- Re: [avr-gcc-list] Re: Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Daniel O'Connor, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Vincent Trouilliez, 2009/02/05
- Re: [avr-gcc-list] Strings: escape sequence to insert arbitrary hex value ?, Daniel O'Connor, 2009/02/05
RE: [avr-gcc-list] Strings: escape sequence to insert arbitrary hexvalue ?, Michael, 2009/02/06