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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0d9db8126fd91cb X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!postnews.google.com!l16g2000yqo.googlegroups.com!not-for-mail From: xorquewasp@googlemail.com Newsgroups: comp.lang.ada Subject: Re: Converting pointers to non nul-terminated C "strings" to Ada string Date: Sat, 14 Feb 2009 03:37:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <9ba7bf2f-de55-4b70-a0cc-82c0eb5bf131@l16g2000yqo.googlegroups.com> References: <9o91prwivma0$.1e4dd833ypxy1.dlg@40tude.net> <6948ef0c-ce70-4330-ba2f-313d9b6ff6d5@l16g2000yqo.googlegroups.com> <1tbswd6ooo8u1.1jl2rgy3nq0lq$.dlg@40tude.net> NNTP-Posting-Host: 81.86.41.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1234611455 9731 127.0.0.1 (14 Feb 2009 11:37:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Feb 2009 11:37:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l16g2000yqo.googlegroups.com; posting-host=81.86.41.187; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008122011 Iceweasel/3.0.5 (Debian-3.0.5-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4605 Date: 2009-02-14T03:37:34-08:00 List-Id: Dmitry A. Kazakov wrote: > On Sat, 14 Feb 2009 02:38:35 -0800 (PST), xorquewasp@googlemail.com wrote: > > That does mean going outside of the RM, which is a bit unfortunate. > > I'll keep it in mind, however. > > What do you mean by that? Interfaces.C.Pointers is a part of the standard > Ada library. Sorry, I was thinking of Interfaces.C.Extensions. > One technique is to declare a huge flat array: > Thanks for that. I'll try it.