Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getenv(3V) — SunOS 4.1.3_U1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

environ(5V)

execve(2V)

putenv(3)

GETENV(3V)  —  C LIBRARY FUNCTIONS

NAME

getenv − return value for environment name

SYNOPSIS

#include <stdlib.h>

char ∗getenv(name)
char ∗name;

DESCRIPTION

getenv() searches the environment list (see environ(5V)) 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 NULL. 

RETURN VALUES

On success, getenv() returns a pointer to a string containing the value for the specified name. If the specified name cannot be found, it returns NULL. 

SEE ALSO

environ(5V), execve(2V), putenv(3)

Sun Release 4.1  —  Last change: 21 January 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026