Question regarding the storage of library functions

Hi there,

I am aware of the fact that the function prototype declarations of standard c/c++ library functions are stored in Header files like stdio.h, conio.h.

But what about the definition( The underlying code of function). Where are they stored and is there a way to see these definitions ?


Greetz
Legend_Xeon

These are inside the .lib or .dll files on windows, inside .a or .so file on unix like systems.
You can see these defination's on unix by downloading gcc from
www.gnu.org
. On windows you have to contact bill gates.

which platform you are working on?
Thanks for the quick reply.

I am on Windows XP and using very old Turbo C compiler to simplify my observation.
In it's installation folder it has a LIB folder containing files like maths.lib.
I hope that it is the place where these definitions are stored.

By the way, is there a way to read these .lib files. And also i am interested in finding the function definition of function clrscr().

Also is there any kind of online documentation where i can see the definition of all standard library functions, like there are definitions available for string functions like strcpy(), strcmp() etc.

First, if you want to make programming your career, don't use turbo C. its old and outdated. many of the functions like clrscr() dont work anywhere. Start with new IDE's, like visual studio, code blocks etc..

you cannot see inside the lib files as its compiled code.

There is not documentation apart from the usage of these functions. To see the source code you may have to download the source code. The source code is not open for windows platform. its only open for unix and can be downloaded from:

www.gcc.gnu.org
as i already said.
you install visual studio 2008 express on windows xp operating system.
you open a new proje.
Your request to see the definition of
Right click on function
function defined
source file to be opened.
You can see here the definition of function.
Last edited on
Thanks guys. I appreciate the help :)
Topic archived. No new replies allowed.