Mail Archives: djgpp/1997/06/13/12:17:13
> If memory servers, Turbo/Borland C++ at one point (and may well still)
> used a third argument, char *envp[] (the name is of course irrelevant), to
> represent the environment variables. As you correctly point out, this is
> non ANSI C and will not work in other compilers.
It is non-ansi C, but it is also fairly common. DJGPP supports
it even. If you look in crt1.c, when main is called it is
passed 3 arguments. The third being environ.
Andrew
- Raw text -