Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!uhura.cc.rochester.edu!cruise.cc.rochester.edu!kenr From: kenr@cruise.cc.rochester.edu (Kenneth C. Rich) Newsgroups: comp.software-eng Subject: Re: WANTED: "C" code line counter program Summary: count ';', '{' and '#' Keywords: C metrics Message-ID: <12781@ur-cc.UUCP> Date: 15 Mar 91 13:19:55 GMT References: <1991Mar6.214157.18633@ntpal.uucp> <9082@suns6.crosfield.co.uk> Sender: news@uhura.cc.rochester.edu Organization: University of Rochester, Rochester NY Lines: 15 In article <9082@suns6.crosfield.co.uk> raj@crosfield.co.uk (ray a jones) writes: >In article <1991Mar6.214157.18633@ntpal.uucp> dcavasso@ntpal.uucp (Dana Cavasso) writes: >> >> I need a "C" code line counter program, preferably written in > >So how about one that counts semi-colons :-) Seriously I emailed him a sh script that counted ';', '}' and '#', to count simple statements, blocks of statements, and cpp directives. !-) Sorry, I discarded it. !-( It was a one liner, too, so it could be an alias in csh. !-) A nice improvement would be to make sure to not count them inside quotes and comments... -- -ken rich -=!=- kenr@cc.rochester.edu