See Parse::RecDescent and the demo csourceparser.pl.
In reply to Re: Script to list out the functions of a C file by marto in thread Script to list out the functions of a C file by prasanth.pronda