Manpage of GETENV
GETENV
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
1.17 `getenv'--look up environment variable
SYNOPSIS
#include <stdlib.h>
char *getenv(const char *NAME);
DESCRIPTION
`getenv' searches the list of environment variable names and values
(using the global pointer "`char **environ'") for a variable whose name
matches the string at NAME. If a variable name matches, `getenv'
returns a pointer to the associated value.
RETURNS
A pointer to the (string) value of the environment variable, or `NULL'
if there is no such environment variable.
PORTABILITY
`getenv' is ANSI, but the rules for properly forming names of
environment variables vary from one system to another.
`getenv' requires a global pointer `environ'.
SEE ALSO
getenv
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:18 GMT, May 16, 2005
www.fiveanddime.net