C/C++: where can I look at the code for built in functions?

Special K

Diamond Member
Jun 18, 2000
7,098
0
76
I was just curious to see the code that the built in functions such as fopen, printf, etc. contain. I looked at the appropriate header files but all I could find were the prototypes. Where should I look?
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Originally posted by: SpecialK
I was just curious to see the code that the built in functions such as fopen, printf, etc. contain. I looked at the appropriate header files but all I could find were the prototypes. Where should I look?

Get the source for the GNU compiler. You'll be able to find it there.
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,005
126
On certain compilers you can find some of it in the .CPP versions of the .H files.