Reputation: 25
I got this flowchart from a book on C.
I get the differences between headers and libraries, however in my understanding shouldn't header files be the code before compilation and not library files.I still don't understand this flowchart 100%. Is it wrong or am I the one wrong here?
EDIT: The name of the book is "Introduction to C Programming" by "Reema Thareja"
Upvotes: 2
Views: 95
Reputation: 133879
What the picture could mean is that the source files or headers that you #include
are also an essential part of libraries.
Also, a header in the C standard terminology is reserved for something that comes from the system and need not be a file; if you have a your own file that you #include
, then that too is called a source file.
Upvotes: 2
Reputation: 17493
It looks like you are right: the ones in red (the one below too) should be header files.
Upvotes: 2