database of C standard library functions?

B

Benjamin Rutt

Does anyone have a database of C standard library functions? or even
clean header files with just the prototypes? when I look at my
system's header files, I see a bunch of "implementation details"
around the actual functions, such as:

extern int atoi (__const char *__nptr) __THROW __attribute_pure__;

which is not as clean as

int atoi(const char *nptr);

The reason I want this is I'm writing a programming tool that could
help make it easier to use the standard library by having knowledge of
all the functions within it, and their parameter names & types and
return values. actually, a database with the return type, function
name, and each parameter type already separated, would be preferred of
course, that way I don't have to parse C at all. But I guess parsing
clean prototypes isn't that hard, so I would gladly accept that as
well.

Thanks in advance for any pointers.
 
P

pete

Benjamin said:
Does anyone have a database of C standard library functions? or even
clean header files with just the prototypes? when I look at my
system's header files, I see a bunch of "implementation details"
around the actual functions, such as:

extern int atoi (__const char *__nptr) __THROW __attribute_pure__;

which is not as clean as

int atoi(const char *nptr);

The reason I want this is I'm writing a programming tool that could
help make it easier to use the standard library by having knowledge of
all the functions within it, and their parameter names & types and
return values. actually, a database with the return type, function
name, and each parameter type already separated, would be preferred of
course, that way I don't have to parse C at all. But I guess parsing
clean prototypes isn't that hard, so I would gladly accept that as
well.

Thanks in advance for any pointers.

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n869/
 
B

Ben Pfaff

Benjamin Rutt said:
Does anyone have a database of C standard library functions? or even
clean header files with just the prototypes?

The C standard has an appendix (in Standardese, an "annex") with
a prototype for each standard C function. In a parallel reply,
"pete" pointed to a C standard draft.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top