getenv(3C)
NAME
getenv − return value for environment name
SYNOPSIS
#include <stdlib.h>
char ∗getenv(const char ∗name);
MT-LEVEL
Safe
DESCRIPTION
getenv() searches the environment list (see environ(5)) for a string of the form name=value and, if the string is present, returns a pointer to the value in the current environment.
RETURN VALUES
If successful, getenv() returns a pointer to the value in the current environment; otherwise, it returns a null pointer.
SEE ALSO
exec(2), putenv(3C), environ(5)
SunOS 5.2 — Last change: 22 Jan 1993