Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getenv(3C) — sys5 — Apollo Domain/OS SR10.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

clearenv(3C)

putenv(3C)

exec(2)

environ(5)

GETENV(3C)                           SysV                           GETENV(3C)



NAME
     getenv - return value for environment name

SYNOPSIS
     #include <stdlib.h>

     char *getenv (name)
     const 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.

DIAGNOSTICS
     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 by a subsequent call to the getenv function.

SEE ALSO
     clearenv(3C) putenv(3C) <stdlib.h> exec(2), putenv(3C), environ(5).

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