Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getenv(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

environ(M)

exec(S)

putenv(S)


 getenv(S)                      6 January 1993                      getenv(S)


 Name

    getenv - return value for environment name

 Syntax


    cc  . . .  -lc


    #include  <stdlib.h>

    char *getenv (name)
    char *name;


 Description

    The getenv function searches the environment list (see environ(M)) 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. If not, it returns a
    NULL pointer.

 See also

    environ(M), exec(S), putenv(S)

 Standards conformance

    getenv is conformant with:
    AT&T SVID Issue 2;
    X/Open Portability Guide, Issue 3, 1989;
    ANSI X3.159-1989 Programming Language -- C;
    Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2);
    IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C
    Language] (ISO/IEC 9945-1);
    and NIST FIPS 151-1.


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