Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!cs.utexas.edu!pp!notrees!unniks From: unniks@notrees.ACA.MCC.COM (C. Unnikrishnan) Newsgroups: comp.unix.questions Subject: Re: ENVIRONMENT settings Message-ID: <77@notrees.ACA.MCC.COM> Date: 10 Dec 88 23:46:43 GMT References: <666@auspex.UUCP> Organization: MCC, Austin, TX Lines: 19 From article <666@auspex.UUCP>, by guy@auspex.UUCP (Guy Harris): >>here's a portion of the code pulled out from a source file >> >>main (argc, argv, envp) > ... i stand corrected. i misread the original post to as wanting the whole environment. this is what i would do in such cases. though i didnot know about the non-portability part. as many people have pointed out getenv() is the best solution for the purpose. ******************************************************************************* Disclaimer: This reflects only my current state of mind. I change my mind every five seconds or so. C. Unni Krishnan unni@mcc.COM ##Arpa Internet {ihnp4,seismo,ucb-vax,gatech}!cs.utexas.edu!pp!unniks *******************************************************************************