GETENV(S) UNIX System V GETENV(S)
Name
getenv - return value for environment name
Syntax
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, otherwise a NULL pointer.
See Also
exec(S), putenv(S), environ(M)
Standards Conformance
getenv is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
The X/Open Portability Guide II of January 1987;
ANSI X3.159-198X C Language Draft Standard, May 13,
1988;
IEEE POSIX Std 1003.1-1988 with C Standard Language-
Dependent System Support;
and NIST FIPS 151-1.
(printed 6/20/89)