From: kagel AT quasar DOT bloomberg DOT com Date: Mon, 5 Aug 1996 10:47:54 -0400 Message-Id: <9608051447.AA01496@quasar.bloomberg.com > To: Giva AT bbb DOT no Cc: djgpp AT delorie DOT com, gv AT nera DOT no, Giva AT bbb DOT no In-Reply-To: <9608031903.AA06307@bbb.no> (message from Gisle Vanem on 3 Aug 96 19:02:54 +0100) Subject: Re: Compile Errors Reply-To: kagel AT dg1 DOT bloomberg DOT com Errors-To: postmaster AT ns1 Date: 3 Aug 96 19:02:54 +0100 From: Gisle Vanem Cc: gv AT nera DOT no, Giva AT bbb DOT no X-Mailer: BBB/Mail Content-Type: text Content-Length: 388 Art S. Kagel said: >> Almost, actually there is a third valid definition for main(): >> >> int main( int argc, char **argv, char **environment ) Shouldn't that be: int main( int argc, char **argv, int envc, char **environment) ^^^ This is how HighC and MSVC defines it. Gisle V. No! I got it right! From ANSI, GCC, and every UNIX "C" that I have run across that was recent enough to have bothered to implement it, the correct format is: int main( int argc, char **argv, char **environment ) (BTW: High C is explicitly MSC source compliant sooo ... ) -- Art S. Kagel, kagel AT quasar DOT bloomberg DOT com A proverb is no proverb to you 'till life has illustrated it. -- John Keats