Can `cpp' strip off comments in C source code?

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

 



Hi, 

I want to use an AWK script to process a C source code. The comments may mislead the script. To make things easy, I'd like to strip off comments from the source code before having the script to process it. Since `cpp' is a c-preprecessor utility, I'd like to know weather it can be used to strip off comments from the source code. I check the manual, but have no idea which options to use. If it can't, is there any other tools which can do this?




[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