• C

Line Counters

Does anyone know of a good line counter utility that counts lines of code?  The program needs to count lines of individual functions also.
kph1Asked:
Who is Participating?
 
JYoungmanConnect With a Mentor Commented:
Under Unix, I just use the command
      tr -dc '{;' | wc -c
This counts semicolons and opening braces as "lines of code"
only.   That's good for coping with varying amounts of comments.
If you don't use Unix, you can do the same in a very short C++ program of your own writing.

0
 
ozoCommented:
Unless you have /* {; */ in comments...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.