Path: utzoo!utgpu!watmath!clyde!att!rutgers!ukma!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: ENVIRONMENT settings Message-ID: <9118@smoke.BRL.MIL> Date: 9 Dec 88 07:47:14 GMT References: <10551@swan.ulowell.edu> <76@notrees.ACA.MCC.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <76@notrees.ACA.MCC.COM> unniks@notrees.ACA.MCC.COM (C. Unnikrishnan) writes: >main (argc, argv, envp) Don't do this. 1. Not all UNIX implementations support it. 2. Very few non-UNIX C implementations support it. 3. POSIX (IEEE 1003.1) doesn't require it. 4. ANSI C (X3.159) doesn't require it. 5. POSIX provides a global variable "environ" if you need to examine the environment rather than just look up a particular value. 6. All recent UNIX implementations I know of support "environ". 7. ANSI C requires support for getenv() to look up a particular value. 8. All recent UNIX implementations I know of support getenv().