Hi,
I viewed the header files for some libraries but there are only declarations. Is the source code stored somewhere else? How can i view them? For example, where s the source code for printf()?
thnx a lot
Hi,
I viewed the header files for some libraries but there are only declarations. Is the source code stored somewhere else? How can i view them? For example, where s the source code for printf()?
thnx a lot
Sources are usually compiled into library files (.lib) in commercial compilers and distrubuted with their headers so you cannot read the source.
However you may try yo search for an open source compiler such as gcc.
The experimenter who does not know what he is looking for will not understand what he finds.
- Claude Bernard
For DJGPP (should work for any other compiler, but they might have done it differently in their original code...)
ftp://gatekeeper.dec.com/pub/micro/p...2/djlsr203.zip (1.5M)
kooma - [email protected]
ozgulker has the right idea. When you write a library, you use multiple .c/.cpp files and a header file to link all of them, and then you compile and run lib.exe to make the library. Then you #include the .h file to use the functions. The lib is already compiled. So, I don't think that you'll be able to get at the code.
1978 Silver Anniversary Corvette