LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-30-2004, 12:01 AM   #1
blackzone
Member
 
Registered: Jul 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-30-2004, 12:08 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
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, 07:00 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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


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 2 10-27-2005 10:00 AM
gcc and stdio in 9.1 iansworld Suse/Novell 1 10-19-2004 02:35 PM
#include <stdio.h> problem dmalsbury Programming 14 01-25-2004 10:05 AM
pthread and stdio the_dayi Programming 2 07-23-2003 02:04 AM
input from stdio raven Programming 2 05-12-2002 11:52 PM


All times are GMT -5. The time now is 09:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration