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 05:16:42 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: HELP: PC System Call Date: 8 Jun 2002 05:16:41 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0206080416.47dc6d13@posting.google.com> References: NNTP-Posting-Host: 205.232.38.247 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023538601 12577 127.0.0.1 (8 Jun 2002 12:16:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Jun 2002 12:16:41 GMT Xref: archiver1.google.com comp.lang.ada:25524 Date: 2002-06-08T12:16:41+00:00 List-Id: "John Cupak" wrote in message news:... > 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 Well if you did the reasonable thing and ran GNU/Linux on your PC's, you would not even be asking this question :-) Even if for some reason you are running Microsoft systems, this should still work fine (interfacing to getenv) if you have an appropriate compiler interfaced.