GNAT.OS_Lib Getenv example


With GNAT, you can obtain enviornment variables
by the GNAT.OS_lib getenv function.
E.g.

with GNAT.OS_lib;

...

  function Get_env_string(name:String) return String is
    begin
      return GNAT.OS_lib.getenv(name).all;
    end;

Contributed by: Gautier de Montmollin
Contributed on: May 23, 1999
License: Public Domain

Back