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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1c1739e9e6a4a7c5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!not-for-mail Date: Tue, 21 Feb 2006 17:16:11 +0100 From: Poul-Erik Andreasen User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: binding to C: popen References: <43fb258f$0$170$edfadb0f@dread11.news.tele.dk> <1140535533.025063.163680@g14g2000cwa.googlegroups.com> <43fb35a4$0$178$edfadb0f@dread11.news.tele.dk> <43fb374a$0$13593$9b4e6d93@newsread2.arcor-online.net> In-Reply-To: <43fb374a$0$13593$9b4e6d93@newsread2.arcor-online.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <43fb3ccb$0$169$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger NNTP-Posting-Host: 80.166.145.174 X-Trace: 1140538571 dread11.news.tele.dk 169 80.166.145.174:34963 X-Complaints-To: abuse@post.tele.dk Xref: g2news1.google.com comp.lang.ada:3043 Date: 2006-02-21T17:16:11+01:00 List-Id: Georg Bauhaus wrote: > Poul-Erik Andreasen wrote: > > >>Yes but a C pointer is in Ada represented as system.address and i can >>not test that for O the the systems.address_image gives 0804C060 and if >>that is a stadart c value for a null-pointer things are fine, but that >>seems to be a hack. > > > System.Null_Address, or Interfaces.C.Strings.Null_Ptr perhaps? > > You could consider writing a predicate like > > fucntion is_null(p: System.Address) return Boolean; > > in order to have the comparison in one place only. > > HTH, > Georg In the meantime i have found out that i will not help much. The null-pointer return will only occur if there is a internal error, and since sh normaly will succed even if the command fails it somthing that rarely occurs. I can not even find out a way to test it. Poul-Erik