python script to match C function signature in multiple lines
<p>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.</p>

<p>e.g. My .c file is:</p>

<pre><code> 1.   int main(
 2.           void
 3.          )
</code></pre>

<p>here main signature is spanned over three lines. </p>

<p>and I have a list of functions as:</p>

<pre><code> int main(void);
</code></pre>

<p>how can i match "int main(void)" with multiline main in .c file ?
I want to start counting lines once function is matched.</p>
