Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-29-2004, 11:01 PM   #1
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
#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?
Old 09-29-2004, 11:08 PM   #2
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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
Old 09-30-2004, 06:00 AM   #3
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
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....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
stdio.c cigarstub Programming 12 12-19-2014 06:39 AM
gcc and stdio in 9.1 iansworld SUSE / openSUSE 1 10-19-2004 01:35 PM
#include <stdio.h> problem dmalsbury Programming 14 01-25-2004 09:05 AM
pthread and stdio the_dayi Programming 2 07-23-2003 01:04 AM
input from stdio raven Programming 2 05-12-2002 10:52 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration