Mail Archives: djgpp/1998/10/21/20:57:06.1
Uhfgood wrote:
>
> okay since that... lemme ask this... okay when prototyping functions in a
> header file I don't need to prototype it in the main source module right? and
> also do I need to use #includes in any of the source files if I have put them
> in the header file? -Keith W. II
Put it this way: a prototype must be visible at the time the function is
used. Thus, put the prototype in a header, and have each source file
that uses the function #include it. The file that defines the function
should also include the header, so the compiler can check that the
prototypes match.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -