Re: [Hampshire] script to identify C function prototypes in …

Top Page

Reply to this message
Author: Andy Random
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] script to identify C function prototypes in header files?

Hi,

Just as a quick follow up...

On Tue, 4 Mar 2008, Adrian Bridgett wrote:
> On Tue, Mar 4, 2008 at 15:22:37 -0500 (-0500), Andy Random wrote:
>> I'm looking for a way of parsing a bunch of C header files and
>> extracting a list of function prototypes from them.
>
> http://ctags.sourceforge.net/ might (help) you do this


It did indeed thanks Adrian!

The specific invocation that I used was:

ctags -x --c-kinds=p *.h

which produces a complete list of the function prototypes found in all the
header files in the current directory, works very nicely and is now
incorporated into the script I was writing.

Andy