> I had to mine function prototypes out of all the code for exactly this reason.
The program that does this is called cproto and it was available back on comp.sources.unix as early as 1989 (if you find yourself with a time machine) and these days is available on nearly every Linux distro.
http://ftp.fi.netbsd.org/pub/misc/archive/comp.sources.unix/...
Also in 1989, mkproto from comp.sources.misc
http://ftp.fi.netbsd.org/pub/misc/archive/comp.sources.misc/...