[Ilugc] C my doubt
- From: itmani@xxxxxxxxxxx (Manikandan P.)
- Date: Mon, 16 Dec 2002 17:52:37 -0600
hi
* The header files contain just prototypes
Where does the actual code for performing an i/o , say using
scanf() or printf() lie. As far as i have seen the header files
dont contain this code (correct me if i am wrong).
you are right !.header files contain only prototypes.
the actual code for scanf/printf/any library function for that matter are
linked
to the file.they usually exist as library files , in linux they are in .o
(object files ), .a(library archive file)
.so (shared object file).scanf/printf are in glibc.you can find their
implementation in
glibc's source code.
Manikandan P.
Other related posts: