comp.lang.ada
 help / color / mirror / Atom feed
From: Corey Ashford <yeroca@rocketmail.com>
Subject: Re: getenv in Ada
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00	[thread overview]
Message-ID: <3664DCF2.2BCE34B9@rocketmail.com> (raw)
In-Reply-To: 36649bdb.116439355@news.pacbell.net

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




  reply	other threads:[~1998-12-02  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-01  0:00 getenv in Ada Fernando Tricas
1998-12-02  0:00 ` Tom Moran
1998-12-02  0:00   ` Corey Ashford [this message]
1998-12-02  0:00   ` Tucker Taft
1998-12-02  0:00     ` Keith Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox