Mail Archives: djgpp/1997/06/12/06:33:20
S2200253 AT nickel DOT laurentian DOT ca wrote:
>
> How do you determine in C or C++ what the environment variables
> are set to. I think there is another varible in
>
> main(int argc, char *argv[], /*something here*/)
There may well be (in fact, I think there is), but it's a nonstandard
way to get the environment. The standard interface is through the
getenv() and putenv() functions; look them up in the libc docs for more
info.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| Proud owner of what might one | http://www.cs.com/fighteer |
| day be a spectacular MUD... | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------
- Raw text -