GETENV(3C) UNIX Programmer's Manual GETENV(3C) NAME getenv - value for environment name SYNOPSIS char *getenv (name) char *name; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System III DESCRIPTION _G_e_t_e_n_v searches the environment list (see _e_n_v_i_r_o_n(7)) for a string of the form _n_a_m_e=_v_a_l_u_e and returns _v_a_l_u_e if such a string is present, otherwise 0 (NULL). _N_a_m_e may be either the desired name, null-terminated, or of the form _n_a_m_e=_v_a_l_u_e, in which case _g_e_t_e_n_v uses the portion to the left of the "=" as the search key. SEE ALSO environ(7).