


GETENV(3V)             C LIBRARY FUNCTIONS             GETENV(3V)



NAME
     getenv - return value for environment name

SYNOPSIS
     #include <stdlib.h>

     char *getenv(name)
     char *name;

DESCRIPTION
     getenv() searches the environment list (see environ(5V)) for
     a  string  of  the form _n_a_m_e=_v_a_l_u_e, and returns a pointer to
     the string _v_a_l_u_e if such a string  is  present.   Otherwise,
     getenv() returns NULL.

RETURN VALUES
     On success, getenv() returns a pointer to a string  contain-
     ing the value for the specified _n_a_m_e.  If the specified _n_a_m_e
     cannot be found, it returns NULL.

SEE ALSO
     environ(5V), execve(2V), putenv(3)

































Sun Release 4.1   Last change: 21 January 1990                  1



