Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: ENVIRONMENT settings Message-ID: <680@auspex.UUCP> Date: 11 Dec 88 05:07:43 GMT References: <10551@swan.ulowell.edu> <3541@ttidca.TTI.COM> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 14 >Nothing to it. Code your main() as follows: > >main (argc, argv, envp) No, don't do that; see Doug Gwyn's earlier comments for why this is a Bad Idea. >Alternatively, you can use the getenv(3) function if you only want to >access some specific environment variables. Somewhere between 90% and 99% (maybe even more) of the code that wants to do something with the environment only wants to access some specific environment variables, and from the original poster's description it sounds like that's what he wanted to do as well.