Re: [OT] What is a 'header' file?
- Posted by Mario Steele <eumario at tr??ake.net> Jun 04, 2008
- 727 views
Hello Kenneth, It actually depends on the Programming Language, but in general cases, a header file refers to C/C++ in majority, which is the way to expose C functions and procedures to other parts of the source code. If a C function define in say a.c, and b.c tries to use the same function, but there is no a.h, the C Compiler will complain about it being an undefined function. However, if a.h exists, and b.c includes a.h, then b.c will be able to use the function defined in a.c, and the compiler will know where to find it. This is how the C pre-processor was designed, and remains true for any derivitive of the C Language, AFAIK. *goes back to lurking* Mario Steele http://enchantedblade.trilake.net Attaining World Dominiation, one byte at a time...