Developer's Daily Unix by Example
  main | java | perl | unix | dev directory | web log
 
 
Main
Unix
Man Pages
   

GETENV

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

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 that matches the string pointed to by name. The strings are of the form name = value.

RETURN VALUE

The getenv() function returns a pointer to the value in the environment, or NULL if there is no match.

CONFORMING TO

SVID 3, POSIX, BSD 4.3, ISO 9899

SEE ALSO

putenv(3), setenv(3), unsetenv(3), environ(5)


copyright 1998-2007, devdaily.com, all rights reserved.
devdaily.com, an alvin j. alexander production.