Re: [OT] What is a 'header' file?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu