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?
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?
What do you consider important?Originally Posted by invisibleghost
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
Any headers that are main use in linux programs.I a newbie try to learn to progem in linux.
Stop worrying about the relative importance of headers, and follow a good tutorial. There are some on this site, I suggest you start there.
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.?
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.