Mail Archives: djgpp/1996/08/05/10:59:11
Errors-To: postmaster AT ns1
Date: 3 Aug 96 19:02:54 +0100
From: Gisle Vanem <Giva AT bbb DOT no>
Cc: gv AT nera DOT no, Giva AT bbb DOT no
X-Mailer: BBB/Mail
Content-Type: text
Content-Length: 388
Art S. Kagel <kagel AT quasar DOT bloomberg DOT com> 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
- Raw text -