gm2-libs/Environment (The GNU Modula-2 Compiler)

#### 4.1.13 gm2-libs/Environment ¶

    DEFINITION MODULE Environment ;

    EXPORT QUALIFIED GetEnvironment, PutEnvironment ;

    (*
       GetEnvironment - gets the environment variable Env and places
          	       	    a copy of its value into string, dest.
                        It returns TRUE if the string Env was found in
                        the processes environment.
    *)

    PROCEDURE GetEnvironment (Env: ARRAY OF CHAR;
                              VAR dest: ARRAY OF CHAR) : BOOLEAN ;

    (*
       PutEnvironment - change or add an environment variable definition
                        EnvDef.
                        TRUE is returned if the environment variable was
                        set or changed successfully.
    *)

    PROCEDURE PutEnvironment (EnvDef: ARRAY OF CHAR) : BOOLEAN ;

    END Environment.