I am reading .c file to look out for functions defined in it and count number of lines in each function. My problem is that I am unable to look for function name/signature spanned across multiple ines. I have the list of function names of .c file and i am matching the function names of this list with functions in .c file to process further.
e.g. My .c file is:
1. int main(
2. void
3. )
here main signature is spanned over three lines.
and I have a list of functions as:
int main(void);
how can i match "int main(void)" with multiline main in .c file ? I want to start counting lines once function is matched.