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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8dea6f46dfb95f66 X-Google-Attributes: gid103376,public From: "Norman H. Cohen" Subject: Re: Environment variables Date: 1996/11/01 Message-ID: <327A118F.239A@watson.ibm.com>#1/1 X-Deja-AN: 193756374 references: <55819q$mql@newslink.runet.edu> content-type: text/plain; charset=us-ascii organization: IBM Thomas J. Watson Research Center mime-version: 1.0 reply-to: ncohen@watson.ibm.com newsgroups: comp.lang.ada x-mailer: Mozilla 3.0 (Win95; I) Date: 1996-11-01T00:00:00+00:00 List-Id: Laurent Guerby wrote: > Robert> If you are using GNAT, take a look at GNAT.OS_Lib.Getenv in > Robert> file g-os_lib.ads (there are lots of useful routines in this > Robert> package :-) > > There's also Ada.Command_Line.Environment. Note (1) that this is a GNAT-only child of Ada.Command_Line and (2) that this package only gives you access to a sequence of strings such as "GNAT_DIR=D:\ADA\gnat304a", leaving you to do the work of finding a string with a given name before the '=' and extracting the value after the '='. -- Norman H. Cohen mailto:ncohen@watson.ibm.com http://www.research.ibm.com/people/n/ncohen