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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.101.77.65 with SMTP id j1mr3496408pgt.3.1499466205697; Fri, 07 Jul 2017 15:23:25 -0700 (PDT) X-Received: by 10.36.89.7 with SMTP id p7mr40671itb.4.1499466205610; Fri, 07 Jul 2017 15:23:25 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!188no1030609itx.0!news-out.google.com!s132ni127itb.0!nntp.google.com!188no1030604itx.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Jul 2017 15:23:25 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.36; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.36 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <567a23f5-a7dc-4b3d-8c16-942a8551c02f@googlegroups.com> Subject: Re: Convert chars_ptr to Ada String From: Anh Vo Injection-Date: Fri, 07 Jul 2017 22:23:25 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47325 Date: 2017-07-07T15:23:25-07:00 List-Id: On Friday, July 7, 2017 at 2:03:32 PM UTC-7, Victor Porton wrote: > Remind me how to convert a pair of Ptr: chars_ptr and Size: size_t to an Ada > string. > > Ptr may contain NULs and this should not influence the length of the > resulting string. Look at APIs defined in package Interfaces.C.Strings. Anh Vo