From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: getenv in Ada
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00 [thread overview]
Message-ID: <F3CGzr.wL.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 36649bdb.116439355@news.pacbell.net
Tom Moran (tmoran@bix.com) 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.
Or if you know the name of the function in your C library,
then just define an appropriate Ada subprogram spec for it and use
pragma Import. At link-time, make sure the appropriate
C library gets searched.
--
-Tucker Taft stt@inmet.com http://www.inmet.com/~stt/
Intermetrics, Inc. Burlington, MA USA
An AverStar Company
next prev parent 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 ` Tucker Taft [this message]
1998-12-02 0:00 ` Keith Thompson
1998-12-02 0:00 ` Corey Ashford
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox