comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst@cts.com>
Subject: Re: Dos Environment varables
Date: 1999/05/21
Date: 1999-05-21T22:47:15+00:00	[thread overview]
Message-ID: <yec7lq2dor1.fsf@king.cts.com> (raw)
In-Reply-To: 7i3stm$o4m$1@news-int.gatech.edu

"Al Lively" <al.lively@business.gatech.edu> writes:
> Can anyone advise how I can access (through Ada code) the contents of local
> environmental variables?

As others have pointed out, some Ada compilers provide routines for
this.

If yours doesn't, or if you want your code to be portable across
compilers, you can probably call the standard C getenv() function.
The C declaration is

     char *getenv(const char *name);

See Interfaces.C (section B.3 in the RM) for information on how to
call C functions from Ada.

-- 
Keith Thompson (The_Other_Keith) kst@cts.com  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center  <http://www.sdsc.edu>                 <*>
Techno-geek.  Mouse bigger than phone.  Bites heads off virtual chickens.




  reply	other threads:[~1999-05-21  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-21  0:00 Dos Environment varables Al Lively
1999-05-21  0:00 ` Keith Thompson [this message]
1999-05-21  0:00 ` Gautier
1999-05-21  0:00   ` Al Lively
1999-05-21  0:00     ` Gautier
1999-05-24  0:00     ` Jeffrey D. Cherry
1999-05-25  0:00       ` Pascal Obry
1999-05-25  0:00         ` Jeffrey D. Cherry
1999-05-22  0:00 ` David Botton
replies disabled

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