title: Extracting C / C++ function prototypes
body: <p>I want to do this:</p>
  
  <pre><code>extract_prototypes file1.c file2.cpp file3.c
  </code></pre>
  
  <p>and have whatever script/program print a nice list of function prototypes for all functions defined in the given C / C++ files. It must handle multi-line declarations nicely.</p>
  
  <p><strong>Is there a program that can do this job?</strong> The simpler the better.</p>
  
  <p>EDIT: after trying to compile two C programs, bonus points for something that uses {perl, python, ruby}.</p>