The \e escape sequence
Michael Elizabeth Chastain
mec.gnu@mindspring.com
Wed Dec 31 19:18:00 GMT 2003
Welcome back, Andrew!
> What's ISO C 90 got to say about it (I gather it isn't part of that
> version of ISO C).
I don't know what the standard says, but here is what gcc thinks that
the standard says:
[mec.gnu@berman tmp]$ cat slash-e.c
char c = '\e';
[mec.gnu@berman tmp]$ gcc -std=iso9899:1990 -pedantic -c slash-e.c
slash-e.c:1:10: warning: non-ISO-standard escape sequence, '\e'
[mec.gnu@berman tmp]$ gcc -std=iso9899:199409 -pedantic -c slash-e.c
slash-e.c:1:10: warning: non-ISO-standard escape sequence, '\e'
[mec.gnu@berman tmp]$ gcc -std=iso9899:1999 -pedantic -c slash-e.c
slash-e.c:1:10: warning: non-ISO-standard escape sequence, '\e'
It's also documented in "info gcc" as an extension to ISO C.
> If it isn't then it shouldn't be used or tested
> (except barely maybe in a GCC specific test).
Sounds good to me.
Michael C
More information about the Gdb
mailing list