title: Python script to print all function definitions of a C/C++ file
body: <p>I want a python script to print list of all functions defined in a C/C++ file.</p>
  
  <p>e.g. <code>abc.c</code> defines two functions as:</p>
  
  <pre><code>void func1() { }
  int func2(int i) { printf("%d", i); return 1; }
  </code></pre>
  
  <p>I just want to search the file (<code>abc.c</code>) and print all the functions defined in it (function names only). In the example above, I would like to print <code>func1</code>, <code>func2</code> using python script.</p>