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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,85592352d25c0f43 X-Google-Attributes: gid103376,public From: Corey Ashford Subject: Re: getenv in Ada Date: 1998/12/02 Message-ID: <3664DCF2.2BCE34B9@rocketmail.com>#1/1 X-Deja-AN: 417761289 Content-Transfer-Encoding: 7bit References: <36649bdb.116439355@news.pacbell.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Rational Software Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-12-02T00:00:00+00:00 List-Id: Tom Moran wrote: > > >is there a procedure or function similar to getenv in Ada95? > No, since many Ada targets have no such thing as an "environment". > But any compiler targetted to Unix or DOS or Windows probably supplies > a getenv function or its equivalent in a library. Look in your > compiler documentation. In particular, if your environment supplies the POSIX 1003.5 API, you can use Posix_Process_Environment.Environment_Value_Of to read an environment variable. Cheers - Corey