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:17:37 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:17:35 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0206080417.7f141be2@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 1023538655 12600 127.0.0.1 (8 Jun 2002 12:17:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Jun 2002 12:17:35 GMT Xref: archiver1.google.com comp.lang.ada:25525 Date: 2002-06-08T12:17:35+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? Actually if you are using GNAT, it would be more appropriate to use the routine in the GNAT library for accessing environment variables.