Xref: utzoo alt.sources.wanted:1082 comp.sources.wanted:15819 comp.software-eng:5098 comp.lang.c:37236 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!p4tustin!carl From: carl@p4tustin.UUCP (Carl W. Bergerson) Newsgroups: alt.sources.wanted,comp.sources.wanted,comp.software-eng,comp.lang.c Subject: Re: WANTED: "C" code line counter program Message-ID: <2628@p4tustin.UUCP> Date: 18 Mar 91 21:54:58 GMT References: <1991Mar6.214157.18633@ntpal.uucp> Followup-To: alt.sources.wanted Organization: POINT 4 Data Corporation, Tustin, CA Lines: 20 dcavasso@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@point4.com 15442 Del Amo Avenue Voice: (714) 259 0777 Tustin, CA 92680-6445 Fax: (714) 259 0921