comp.lang.ada
 help / color / mirror / Atom feed
From: "David Botton" <David@Botton.com>
Subject: Re: PC System Call
Date: Sat, 8 Jun 2002 23:09:01 -0400
Date: 2002-06-08T23:09:01-04:00	[thread overview]
Message-ID: <ug5hop8mgip492@corp.supernews.com> (raw)
In-Reply-To: ZtcM8.49323$KD3.980836@typhoon.ne.ipsvc.net

There is an example on AdaPower of using GNAT.OS_Lib.getenv -
http://www.adapower.com/lang/gnat-os-getenv.html

If you need to, you can look at the source of  GNAT.OS_Lib (included with
the gnat distributions) and see how it is done.

David Botton



"John Cupak" <Jcupak744@attbi.com> wrote in message
news:ZtcM8.49323$KD3.980836@typhoon.ne.ipsvc.net...
> I teach Ada 95 using N. Cohen's "Ada as a Second Language, 2ed".
>
> In the past, the students used UNIX workstations, and I assigned them
> the GETENV problem from them book. You know, call the UNIX
> getenv function with an environment variable, and get the mapped
> results back. We used all the C interface libraries, and it work just
> like in the book!
>
> But, now we've replaced all the UNIX workstations with PCs, and I
> need a similar problem to give the students.
>
> Does anyone have a nice, simple, Ada 95 "call" to an existing PC
> library function (even a DLL?) that I can substitute for the GETENV
> problem?
>
> Let me know both here, as well as my work email: John_J_Cupak@raytheon.com
>
> Thanks,
> John
>
>





      parent reply	other threads:[~2002-06-09  3:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-08  0:46 HELP: PC System Call John Cupak
2002-06-08  6:40 ` Adrian Knoth
2002-06-09  4:04   ` Chad R. Meiners
2002-06-08  7:59 ` Jerry van Dijk
2002-06-08 12:16 ` Robert Dewar
2002-06-08 12:17 ` Robert Dewar
2002-06-09 10:51   ` Simon Wright
2002-06-08 12:42 ` Preben Randhol
2002-06-09  3:09 ` David Botton [this message]
replies disabled

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