C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2005, 06:45 PM   #1
Registered User
 
invisibleghost's Avatar
 
Join Date: Jun 2004
Posts: 28
Linux header question

Is this the most important linux headers?

sys/socket.h= defines funetion prototype.

sys/types.h=standard system types.

resolv.h=defines needed data types


Am i miss anything?
invisibleghost is offline   Reply With Quote
Old 02-15-2005, 07:45 PM   #2
Obsessed with C
 
chrismiceli's Avatar
 
Join Date: Jan 2003
Posts: 501
Quote:
Originally Posted by invisibleghost
most important linux headers
What do you consider important?
__________________
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
chrismiceli is offline   Reply With Quote
Old 02-15-2005, 07:52 PM   #3
Registered User
 
invisibleghost's Avatar
 
Join Date: Jun 2004
Posts: 28
Any headers that are main use in linux programs.I a newbie try to learn to progem in linux.
invisibleghost is offline   Reply With Quote
Old 02-16-2005, 02:27 AM   #4
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 3,020
Stop worrying about the relative importance of headers, and follow a good tutorial. There are some on this site, I suggest you start there.
bithub is offline   Reply With Quote
Old 02-16-2005, 10:27 AM   #5
Registered User
 
invisibleghost's Avatar
 
Join Date: Jun 2004
Posts: 28
Who said i worrying,I been use linux for years.Could you come up with something better then that?If your not going to help someone with a question don't reply is that so hard to do.?
invisibleghost is offline   Reply With Quote
Old 02-17-2005, 10:03 AM   #6
Gawking at stupidity
 
Join Date: Jul 2004
Posts: 2,324
There's no such thing as "important headers." There's only "headers you need to perform a certain task." For example, you don't need resolv.h unless you're going to be using DNS in your program. Most programs include stdio.h, but if you're not going to be doing any standard I/O you don't need that either.

Every header file is important when it contains what you need. And what you need depends on your program. If you're doing SDL programming then I'd say the SDL header files are pretty important. If you're going to be using the standard string functions then I'd say string.h is pretty important. If you're going to be doing dynamic memory allocation then I'd say stdlib.h is pretty important.

Like bithub said, stop worrying about which header files are important. Just include the ones you need to. The top of each function's manpage tells you what header file(s) contains what you need to use that function.
__________________
If you understand what you're doing, you're not learning anything.

Ignore any "advice" esbo tries to give you. It's wrong.
itsme86 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General a.out redirection question under Linux merixa C++ Programming 3 11-07-2005 05:36 PM
C header file question? correlcj C Programming 3 08-13-2002 07:59 AM
global variable and header question Unregistered C++ Programming 2 08-05-2002 11:38 PM
header file question unanimous C Programming 1 12-15-2001 08:15 PM
Question about LINUX River21 A Brief History of Cprogramming.com 0 09-17-2001 06:39 PM


All times are GMT -6. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22