LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   #include <stdio.h>? (https://www.linuxquestions.org/questions/programming-9/include-stdio-h-236927/)

blackzone 09-29-2004 11:01 PM

#include <stdio.h>?
 
almost all c code include from stdio.h, string.h..

but where does stdio.h stored.

if you search the directory there is alot all named the same, how do you know which one to use when make?

itsme86 09-29-2004 11:08 PM

Your compiler knows which directory is your default include directory. For instance, gcc looks in /usr/include for header files so when you do #include <stdio.h> it's actually including /usr/include/stdio.h

Hko 09-30-2004 06:00 AM

Knowing which to use is a matter of reading the man page of the function you want to use, and maybe the doc's of an external library you may be using.

Knowing which function to use may be a lot more tricky to find out, especially if beyond the usual found in the standard headers like string.h stdlib.h, stdio.h....


All times are GMT -5. The time now is 12:24 AM.