Hi, I was curious if anyone knows where I can find code for library functions like printf() or fgets() etc. I was able to find the header files but not the actual code that shows how the functions are made.
Hi, I was curious if anyone knows where I can find code for library functions like printf() or fgets() etc. I was able to find the header files but not the actual code that shows how the functions are made.
They lie compiled inside library (*.lib) files, unreachable from people like us .
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
The GNU C compiler is open source. At www.delorie.com/djgpp you can find ports of GCC and also download the source code. Or, ofcourse, you can look at www.gnu.org.
Thanks Alot
why isnt it in assembly? how can c code write c code if theres no assembly to start with?
i think im starting to question it to much......................
A cross compiler ?
i mean how can the foundation of c code be c code? it couldnt of invented its self. why is it that the zip file has c code and not assembly?
>>i mean how can the foundation of c code be c code? it couldnt of invented its self.
A compiler can be written in C since all it does is parse a text file and convert it to an executable. The fact that the text file contain C source doesn't matter :-)
*Cela*