in reply to Re: removing C style comments from text files
in thread removing C style comments from text files
# include <stdlib.h> # include <stdio.h> int main (int argc, char * argv []) { printf ("Hello, world\n"); /* Print 'Hello, world' */ exit (0); }
Assume this is in the file hello.c.
Even with blank lines removed, the 7 line hello.c expands to 853 lines of pre processor output.$ gcc -E hello.c | wc -l 1566 $ gcc -E hello.c | grep -v '^$' | wc -l 853
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: removing C style comments from text files
by BUU (Prior) on Jan 07, 2004 at 04:11 UTC |