From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54b43bce78b18737 X-Google-Attributes: gid103376,public From: "Al Lively" Subject: Re: Dos Environment varables Date: 1999/05/21 Message-ID: <7i42q7$c48$1@news-int.gatech.edu>#1/1 X-Deja-AN: 480581497 References: <7i3stm$o4m$1@news-int.gatech.edu> <37458BC1.CC63E63E@Maths.UniNe.CH> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: usenet@news.gatech.edu X-Trace: news-int.gatech.edu 927305351 12424 130.207.53.125 (21 May 1999 16:49:11 GMT) Organization: Georgia Institute of Technology, Atlanta GA, USA NNTP-Posting-Date: 21 May 1999 16:49:11 GMT Newsgroups: comp.lang.ada Date: 1999-05-21T16:49:11+00:00 List-Id: I am using ObjectAda 7.1 on a windows 95 platform.... Gautier wrote in message <37458BC1.CC63E63E@Maths.UniNe.CH>... >> Can anyone advise how I can access (through Ada code) the contents of local >> environmental variables? > >Which compiler, platform ? > >With GNAT, you obtain them 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; > >-- >Gautier > >-------- >http://members.xoom.com/gdemont/