![]() |
| | #1 |
| Registered User Join Date: Jun 2004
Posts: 28
| Linux header question 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 | |
| | #2 | |
| Obsessed with C Join Date: Jan 2003
Posts: 501
| Quote:
__________________ Help populate a c/c++ help irc channel server: irc://irc.efnet.net channel: #c | |
| chrismiceli is offline | |
| | #3 |
| Registered User 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 | |
| | #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 | |
| | #5 |
| Registered User 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 | |
| | #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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |