You can write parser like code, which will search for some pattern to extract 
function name from program, difficulty will be to decide on patterns.
   
  Regards,
  Sachin

imranhbr <[EMAIL PROTECTED]> wrote:
          --- In [email protected], Vic Wagner <[EMAIL PROTECTED]> wrote:
>
> imranhbr wrote:
> > Is there any library or API that could extract the defined 
function 
> > names from the particular C file.
> >
> > e.g
> >
> >
> > Test.c file defined three functions
> >
> > int firstFunction(int)
> > {
> >
> > /*some statements*/
> >
> > }
> >
> > int secondFunction(int)
> > {
> >
> > /*some statements*/
> >
> > }
> >
> >
> > int thirdFunction(int)
> > {
> >
> > /*some statements*/
> >
> > }
> >
> > /*end of file*/
> >
> >
> > what I want to get the function names: firstFunction, 
secondFunction 
> > and thirdFunction.
> > 
> If you want the name from inside the program you may want to look 
at the 
> documentation on your compiler. Since you haven't said what you 
want to 
> DO with the names, I guess I'll leave further comment for later.
>

I wanted to develop a simple tool, which will have a browse button 
and list box. Through Browse button I will select a C source file 
and then list box will show a function names defined in this file.



                         

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.

[Non-text portions of this message have been removed]

Reply via email to