[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get all the function names in side a c file
From: |
Larry Smith |
Subject: |
Re: How to get all the function names in side a c file |
Date: |
Wed, 23 Jan 2008 23:20:36 GMT |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20070803 SUSE/1.1.7-0.1 SeaMonkey/1.1.7 |
parag_paul@hotmail.com wrote:
> Just for a heads up , I have tried using ctags
> but then it is more like the vi search engine and nothing more than
> that
>
> On Jan 23, 5:18 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
> wrote:
>> hi all,
>>
>> Is there a quick way to get all the function names that are defined in
>> a c file
>>
>> -Parag
>
Try:
gcc -c -aux-info funcs.txt myfile.c
to put the function list into funcs.txt.
This puts ALL functions into funcs.txt, even
those found in system headers. You can use
grep to list just those from myfile.c:
grep 'myfile\.c' funcs.txt