From: Keith Thompson <kst@cts.com>
Subject: Re: getenv in Ada
Date: 1998/12/02
Date: 1998-12-02T00:00:00+00:00 [thread overview]
Message-ID: <yecg1ayazgu.fsf@king.cts.com> (raw)
In-Reply-To: F3CGzr.wL.0.-s@inmet.camb.inmet.com
stt@houdini.camb.inmet.com (Tucker Taft) writes:
> 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.
Note that the getenv function is part of standard C, so any conforming
hosted C implementation must provide it by that name, though the
semantics are implementation-defined. (A freestanding implementation
of C may or may not provide getenv.)
--
Keith Thompson (The_Other_Keith) kst@cts.com <http://www.ghoti.net/~kst> <*>
Qualcomm, San Diego, California, USA <http://www.qualcomm.com>
I must be a techno-geek. My mouse is bigger than my phone.
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
1998-12-02 0:00 ` Keith Thompson [this message]
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