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,8be452774bba3c5f X-Google-Attributes: gid103376,public From: kst@sd.aonix.com (Keith Thompson) Subject: Re: Need help re: System Calls Date: 1997/04/09 Message-ID: #1/1 X-Deja-AN: 234734174 Sender: news@thomsoft.com (USENET News Admin @flash) X-Nntp-Posting-Host: pulsar References: Organization: Aonix, San Diego, CA, USA Newsgroups: comp.lang.ada Originator: kst@pulsar Date: 1997-04-09T00:00:00+00:00 List-Id: In <860461839.15snx@jvdsys.nextjk.stuyts.nl> jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) writes: [...] > In this case you can take advantage of the fact that for GNAT > Interfaces.C.int equals Integer. How is this an advantage? What's wrong with using Interfaces.C.int? > But, as you also need to convert the > Ada string into a C-type zero terminated ascii character array, it is > probably useful to put a wrapper around the C library call: [code deleted] As long as you're putting a wrapper around it, let the wrapper do the conversion from Interfaces.C.int to Integer. -- Keith Thompson (The_Other_Keith) kst@sd.aonix.com <*> TeleSo^H^H^H^H^H^H Alsy^H^H^H^H Thomson Softw^H^H^H^H^H^H^H^H^H^H^H^H^H Aonix 5040 Shoreham Place, San Diego, CA, USA, 92122-5989 "Humor is such a subjective thing." -- Cartagia