Seth Woolley's Man Viewer

getenv(3) - getenv, getenv - get an environment variable - man 3 getenv

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

GETENV(3)                  Linux Programmer's Manual                 GETENV(3)



NAME
       getenv - get an environment variable

SYNOPSIS
       #include <stdlib.h>

       char *getenv(const char *name);

DESCRIPTION
       The  getenv()  function searches the environment list for a string(3,n) that
       matches the string(3,n) pointed to by name.  The strings  are  of  the  form
       name = value.

RETURN VALUE
       The  getenv()  function  returns a pointer to the value in(1,8) the environ-
       ment, or NULL if(3,n) there is no match.

CONFORMING TO
       SVID 3, POSIX, BSD 4.3, ISO 9899

SEE ALSO
       clearenv(3), putenv(3), setenv(3), unsetenv(3), environ(5)



GNU                               1993-04-03                         GETENV(3)

References for this manual (incoming links)