AdaPower Logged in as Guest
Ada Tools and Resources

Ada 95 Reference Manual
Ada Source Code Treasury
Bindings and Packages
Ada FAQ


Join >
Articles >
Ada FAQ >
Getting Started >
Home >
Books & Tutorials >
Source Treasury >
Packages for Reuse >
Latest Additions >
Ada Projects >
Press Releases >
Ada Audio / Video >
Home Pages >
Links >
Contact >
About >
Login >
Back
GNAT.OS_Lib Getenv example (Gautier de Montmollin)

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;


(c) 1998-2004 All Rights Reserved David Botton