Sender: nate AT cartsys DOT com Message-ID: <362E7E8D.68AFB941@cartsys.com> Date: Wed, 21 Oct 1998 17:38:37 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: -KWII- Help on using #define's with other modules... References: <199810211826 DOT OAA11152 AT indy DOT delorie DOT com> <19981021145237 DOT 26453 DOT 00003986 AT ng127 DOT aol DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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