getenv(S-osr5)
getenv --
return value for environment name
Syntax
cc . . . -lc
#include <stdlib.h>
char *getenv (name)
char *name;
Description
The getenv function searches the environment list
(see
environ(M))
for a string of the form
name = value
and returns a pointer to the
value in the current environment if such a string
is present. If not, it returns a
NULL pointer.
See also
environ(M),
exec(S-osr5),
putenv(S-osr5)
Standards conformance
getenv is conformant with:
X/Open Portability Guide, Issue 3, 1989
;
ANSI X3.159-1989 Programming Language -- C
;
Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2)
;
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1)
;
and
NIST FIPS 151-1
.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005