Revision: 11257
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 29, 2009 07:50 by prsannalkr
Initial Code
Hi All,
Need a help to get the function name and associated line number in a file using perl.
For example:
Consider file name is a.c and it is having functions definition in the following format
Return type
Function_Name(
Int a,
Char *b
…
)
{
……..
……
}
I need out put in the following format:
Line No : Function_Name
NOTE: Need to consider the case of opening brace “{†of function definition may start immediately after closing parenthesis of function. Ex: func_Name(.., ..) { as in above it appeared in the new line.
Kindly help me out to solve this problem at the earliest. It’s a requirement in our project.
Initial URL
Initial Description
Initial Title
List C & CPP function names from a file using perl
Initial Tags
perl
Initial Language
Perl