| View previous topic :: View next topic |
| Author |
Message |
TonyBradley
Joined: Thu Jul 13, 2006 2:40 pm Posts: 17 Location: Plymouth
|
Posted: Sat Sep 24, 2011 2:02 pm Post subject: Newbie C language Header and Include files question |
|
|
I'm totally new to this programming lark...
C has many functions to perform specific tasks, stored in library files.
Why does it use so many different library files? Surely it would make more sense to store them all in one file, negating the need to remember which header and include files to place in your code!
Is there a way to learn which files store which functions, and where they are stored? |
|
| Back to top |
|
 |
larcky
Joined: Sun Nov 21, 2010 6:28 pm Posts: 19 Location: England
|
Posted: Sat Sep 24, 2011 6:29 pm Post subject: |
|
|
Hi
| Quote: | | Surely it would make more sense to store them all in one file |
No because then that file would be HUUUUUUUUUUUUUGE!!! and impossible to maintain.
You'll soon get used to it.
| Quote: | | Is there a way to learn which files store which functions, and where they are stored? |
You can always just browse through the headers themselves (in /usr/include) to see what they're up to. Or if you know what a function's called but don't know where it is, there's an excellent reference section at http://cplusplus.com.
If you're after a good reference book have a look here:
http://www.amazon.co.uk/Reference-Manual-Samuel-P-Harbison/dp/013089592X/ref=sr_1_14?ie=UTF8&qid=1316884734&sr=8-14 |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|