Manual page for GETENV(3)
getenv - value for environment name
SYNOPSIS
#include <stdlib.h>
char *getenv(char *name);
DESCRIPTION
Getenv
searches the environment list
(see
environ.7
for a string of the form
name=value
and returns a pointer to the string
value
if such a string is present, otherwise
getenv
returns the value 0 (NULL).
RETURN VALUE
Upon successful completion,
getenv
returns a pointer to a string
containing the
value
for the specified
name,
or a NULL pointer if the specified
name
cannot be found.
Unsuccessful completion results in the return of a NULL pointer.
SEE ALSO
execve(2), environ(7)
Created by unroff & hp-tools.
© somebody (See intro for details). All Rights Reserved.
Last modified 11/5/97