WANTED: "C" code line counter program
Carl W. Bergerson
carl at p4tustin.UUCP
Tue Mar 19 07:54:58 AEST 1991
dcavasso at ntpal.uucp (Dana Cavasso) writes:
>
> I need a "C" code line counter program, preferably written in
> "C". It will be used on several platforms, so solutions involving
> shell scripts and other UNIX utilities won't work. I'm not very
> picky (although I'd like something that did a little more than count
> newlines :-)
In the October or November issue of Unix World the Wizard's Grabbag column
contained three programs for removing comments from C and C++ code. I
believe that one of them was in C.
Once you have the comments removed, you can use the wc program that is
listed in "Software Tools in Pascal" by Kernighan and (memory fails me).
Translating to C shouldn't be all that difficult.
--
Carl Bergerson uunet!p4tustin!carl
Point 4 Data Corporation carl at point4.com
15442 Del Amo Avenue Voice: (714) 259 0777
Tustin, CA 92680-6445 Fax: (714) 259 0921
More information about the Comp.lang.c
mailing list