In article <11*********************@o13g2000cwo.googlegroups. com>,
sa*************@gmail.com says...
Hello,
How to count, "Total Number of functions in c program". Is any tool
availabel.
ThankX in advance
Yours
Saravanan.
Well, if you have source code formatted properly (*ahem*), then all
of your functions start with a { in column 1 and nothing else does,
like this...
int foo(void)
{
So, grep "^{" *.c | wc -l should do the trick.
--
Randy Howard (2reply remove FOOBAR)
"Making it hard to do stupid things often makes it hard
to do smart ones too." -- Andrew Koenig