Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getenv(3) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

putenv(3)

clearenv(3)

sh(1)

getenv(3)  —  Subroutines

OSF

NAME

getenv − Returns the value of an environment variable

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <stdlib.h>

char ∗getenv (
const char ∗name );

PARAMETERS

nameSpecifies the name of an environment variable. 

DESCRIPTION

The getenv() function searches the environment list for a string of the form name=value, and returns a pointer to a string containing the corresponding value for name. 

NOTES

AES Support Level:
Full use

RETURN VALUES

The getenv() function returns a pointer to a string containing the value in the current environment if such a string is present.  If such a string is not present, a null pointer is returned. 

The returned string should not be modified by the application, and may be overwritten or changed as a result of the putenv(), setenv(), or unsetenv() functions. 

RELATED INFORMATION

Functions: putenv(3), clearenv(3)

Commands: sh(1)

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