Number of source line of codes in a function

1. ask for help on counting number of lines of source codes

Hi all,

        i want to count the number of lines of C source files ignoring comments. i could easily ignore "//" with grep
,but for "/*" and "*/", i dunno how to do!

        is there any perl or shell script out there for such purposes?

thx in advance

--
??-!e-!CYBASTER!(ao)
THE CHINESE UNIVERSITY OF HONG KONG
SHAW COLLEGE
COMPUTER SCIENCE Y99 2/3
ICQ#    3817617


2. filesystem mounting problems

3. get the line number of the source code from excutable file

4. Kylix binaries running under FreeBSD Linux emulation?

5. Linux Kernel source code, line by line

6. PROGRAM CPU-HOGGING SERVER

7. Need the source code for rand() function.

8. Poor man's RAID?

9. Where to find the source code for the standard C library function gmatch?

10. where to find the source code of "send" function of TCP?

11. Source Code for Crypt function under SCO unix

12. Source code for gethostbyname library function