Seriously, what are the restrictions? Counting or not counting comments? Blank lines? Are you going to penalize one developer over another because one does
and another doesif(a) { do_this(); }
?if(a) do_this();
You probably want to go over to freshmeat.net and type "metrics". That'll find you things like CCCC, to pick the first result from the list.
I like perl, and I do a lot of things with it, but this isn't a wheel I'd chose to reinvent.
--
Mike
In reply to Re: LOC
by RMGir
in thread Counting lines of C code
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |