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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,85592352d25c0f43 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: getenv in Ada Date: 1998/12/02 Message-ID: #1/1 X-Deja-AN: 417878624 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <36649bdb.116439355@news.pacbell.net> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1998-12-02T00:00:00+00:00 List-Id: Tom Moran (tmoran@bix.com) wrote: : >is there a procedure or function similar to getenv in Ada95? : No, since many Ada targets have no such thing as an "environment". : But any compiler targetted to Unix or DOS or Windows probably supplies : a getenv function or its equivalent in a library. Look in your : compiler documentation. Or if you know the name of the function in your C library, then just define an appropriate Ada subprogram spec for it and use pragma Import. At link-time, make sure the appropriate C library gets searched. -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA An AverStar Company