GETENV(3C) — HP-UX
NAME
getenv − return value for environment name
SYNOPSIS
char ∗getenv (name)
char ∗name;
DESCRIPTION
Getenv searches the environment list (see environ(5)) for a string of the form name=value, and returns a pointer to the value in the current environment if such a string is present, otherwise a NULL pointer. Name may be either the desired name, null-terminated, or of the form name=value, in which case getenv uses the portion to the left of the "=" as the search key.
DEPENDENCIES
Series 300, 500
Getenv does not support 16-bit data.
SEE ALSO
exec(2), putenv(3C), environ(5).
INTERNATIONAL SUPPORT
8- and 16-bit data.
Hewlett-Packard Company — Version B.1, May 11, 2021