News for hackers. Stuff that matters.
Re:Building and Linking Libraries in C by clarry on Friday December 23, 2016 @09:37AM (#13244897)
Oh, where is the officially sanctioned definition of the meaning and intent of a header?

What we call them doesn't matter. There is nothing wrong with putting code in one. You can call them source files if you prefer.

Re:Building and Linking Libraries in C by Annatar on Friday December 23, 2016 @11:00AM (#13245345)
Oh, where is the officially sanctioned definition of the meaning and intent of a header?

So glad you asked: The C Programming language, 2nd edition, page 82, chapter "FUNCTIONS AND PROGRAM STRUCTURE", as follows:

"There is one more thing to worry about--the definitions and declarations shared among the files. As much as possible, we want to centralize this, so that there is only one copy to get right and keep right as the program evolves. Accordingly, we will place this common material in a header file, calc.h, which will be included as necessary."

https://youtu.be/4PaWFYm0kEw?t=2237

Re:Building and Linking Libraries in C by clarry on Friday December 23, 2016 @07:20PM (#13247974)
Right, definitions and declarations. Common material. Code.