LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-29-2004, 11:01 PM   #1
blackzone
Member
 
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
itsme86
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
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

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


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:54 AM.

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