473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

database of C standard library functions?

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.
--
Benjamin Rutt
Nov 15 '05 #1
3 1466
Benjamin Rutt wrote on 17/07/05 :
Does anyone have a database of C standard library functions?


Here is a solid reference (C99):

The C-library: http://www.dinkumware.com/refxc.html

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

I once asked an expert COBOL programmer, how to
declare local variables in COBOL, the reply was:
"what is a local variable?"
Nov 15 '05 #2
Benjamin Rutt wrote:

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/

--
pete
Nov 15 '05 #3
Benjamin Rutt <ru**@bmi.osu.edu> writes:
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.
--
Ben Pfaff
email: bl*@cs.stanford.edu
web: http://benpfaff.org
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
3
by: Dave | last post by:
What are some recommended references for the C Standard Library portion of C++? Buying the Standard itself is impractical now that only the hardcopy version is available...
43
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own...
6
by: junky_fellow | last post by:
On what basis it is decided that a particular funtion should be a part of Standard C library ? Do I get these standard C libraries along with the C compiler ? Or I can use the c complier from...
7
by: Lighter | last post by:
Is overriding a function of a library in accordance with C++ standard? The following code are passed by the VS 2005 and Dev C++. #include <cstdlib> #include <iostream> using namespace std;...
22
by: David Mathog | last post by:
One thing that keeps coming up in this forum is that standard C lacks many functions which are required in a workstation or server but not possible in an embedded controller. This results in a...
85
by: fermineutron | last post by:
Some compilers support __asm{ } statement which allows integration of C and raw assembly code. A while back I asked a question about such syntax and was told that __asm is not a part of a C...
4
by: dustin | last post by:
I've been hacking away on this PEP for a while, and there has been some related discussion on python-dev that went into the PEP: ...
20
by: J de Boyne Pollard | last post by:
MThe library functions which are included to allow process Mlaunch, forking, and termination, imply that it is both Mpossible and desirable for a process to fork itself. This is Ma fundamental...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.