Counting LOC in C

Hi
Do you know where I can find any utility that counts lines of code in a C program, accurately?

The ones that count the semicolons does not give correct results.

Thanx Andonis Matsakas

Hi,

 If your c program is just a simple text file then you have to simple run the following command

wc -l filename

and if you want to find out the number of lines containing semi-colons then use this command

grep ";" filename|wc -l

I hope this is the output you are expecting