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

#### 4.1.35 gm2-libs/SEnvironment ¶

    DEFINITION MODULE SEnvironment ;

    FROM DynamicStrings IMPORT String ;
    EXPORT QUALIFIED GetEnvironment ;

    (*
       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: String;
                              VAR dest: String) : 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: String) : BOOLEAN ;

    END SEnvironment.