Mail Archives: djgpp/1996/08/04/10:26:37
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.
- Raw text -