Date: Sun, 4 Aug 1996 17:20:37 +0200 (IST) From: Eli Zaretskii To: "Alexander V. Lukyanov" Cc: Giva AT bbb DOT no, djgpp AT delorie DOT com, gv AT nera DOT no Subject: Re: Compile Errors In-Reply-To: <199608041243.QAA02617@video.yars.free.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 4 Aug 1996, Alexander V. Lukyanov wrote: > > >> 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. > > Another reason not to use non-standard features and that particular > one. The first form comes from Borland and is correct in Borland C. > Although it can be used in djgpp too, don't use it! Use getenv instead. Hmmm... I always thought that ANSI C allows this: int main (int argc, char *argv[], char *environ[]) Isn't that so? Don't have my ANSI C reference handy, but otherwise I'm pretty sure it's so.