From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Callbacks Date: Mon, 23 Jun 1997 19:53:14 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 22 Message-ID: <33AED42A.26EB@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp205.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Robert Humphris wrote: > > void main() And be sure to use the correct definition for main(), or I'll have to hunt you down and beat you to death with a rusty nail file. One more time: it's int main( void ) { ... return 0; } or int main( int argc, char *argv[] ) { ... return 0; }. NOTHING ELSE IS VALID ANSI C!!! (P.S.: I make an exception for compilers that include the environment as a third parameter; although according to the C FAQ you shouldn't rely on this either.) -- --------------------------------------------------------------------- | John M. Aldrich | "If 'everybody knows' such-and-such, | | aka Fighteer I | then it ain't so, by at least ten | | mailto:fighteer AT cs DOT com | thousand to one." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------