From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,15d349644a4a019d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-08 20:10:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!DirecTVinternet!DirecTV-DSL!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: PC System Call Date: Sat, 8 Jun 2002 23:09:01 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:25576 Date: 2002-06-08T23:09:01-04:00 List-Id: 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" 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 > >