delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/02:03:56

From: "John M. Aldrich" <fighteer AT cs DOT com>
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: <c=GB%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-970623081856Z-221 AT crianlarich DOT Indigo>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp205.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019