Re: Where to find code for interpreting c escape sequences?

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

 



Lkjnlkjn Lkjnlkjn schrieb:
They'll be passed as args to program and I'd like to be able to interpret them as such. I think that gcc source files may have this code, but I don't know where exactly, therefore I'd appreciate a link.

E. g.: program \t
I'd like to convert "\t" to 0x09. And to do the same for all c escape sequences.

You can simply write
   int tab = '\t';
in you program and tab will be set to 9.

As far as GCC is concerned, you might find the definition of ESCAPES in
   ./gcc/config/elfos.h
helpful.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux