Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2005 11:24:21 +0530
From:      Joseph Koshy <joseph.koshy@gmail.com>
To:        Tony Maher <anthony.maher@uts.edu.au>
Cc:        hackers@freebsd.org
Subject:   Re: getenv semantics
Message-ID:  <84dead720510152254j5a75ee1ewad3b7556145fca3@mail.gmail.com>
In-Reply-To: <4351DEDE.9000900@uts.edu.au>
References:  <4351DEDE.9000900@uts.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is this analysis correct?  Can someone point me to the (a?)
> standard that describes this.  The FreeBSD behaviour makes
> sense, I am trying to understand what is the expected
> behaviour on other platforms.

>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."

--
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720510152254j5a75ee1ewad3b7556145fca3>