getenv semantics

Tony Maher anthony.maher at uts.edu.au
Sat Oct 15 23:59:41 PDT 2005


Thanks for the reference.  As I read it FreeBSD is following
standard (no surprise ;-) but it would appear other platforms
may not be.  I'll check this out when I get access to a linux
box.

Joseph Koshy wrote:

>>From "The Open Group Base Specifications Issue 6"
> http://www.cnop.net/docs/susv3/functions/getenv.html
> 
> "The getenv() function shall search the environment of the
>  calling process (see the Base Definitions volume of IEEE Std
>  1003.1-2001, Chapter 8, Environment Variables) for the
>  environment variable name if it exists and return a pointer to
>  the value of the environment variable. If the specified
>  environment variable cannot be found, a null pointer shall be
>  returned."

--
tonym

-- 
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.


More information about the freebsd-hackers mailing list