comp.lang.ada
 help / color / mirror / Atom feed
From: sjw <simon.j.wright@mac.com>
Subject: Re: Trouble writing Ada callback from C
Date: Fri, 11 Sep 2009 13:38:38 -0700 (PDT)
Date: 2009-09-11T13:38:38-07:00	[thread overview]
Message-ID: <7041dea0-2b3a-4b59-b08a-3679cf11faf9@m38g2000yqd.googlegroups.com> (raw)
In-Reply-To: f637f1e2-f78b-4d3d-8afb-03376fbd27cd@j39g2000yqh.googlegroups.com

On Sep 11, 9:24 am, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:

> procedure geolocation_labeler (label : in chars_ptr; length : in
> size_t) is
>    Result : constant String := " N"; -- or whatever
> begin
>    Update (Item => label, Offset => 0, Str => To_C (Result), Check =>
> False);

Check that Result'Length < length (have to leave room for the
terminating nul)



  reply	other threads:[~2009-09-11 20:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11  7:57 Trouble writing Ada callback from C Jerry
2009-09-11  8:24 ` Ludovic Brenta
2009-09-11 20:38   ` sjw [this message]
2009-09-12  5:28   ` Jerry
2009-09-12  5:46     ` sjw
2009-09-16 23:06       ` Jerry
2009-09-12  8:44     ` Georg Bauhaus
2009-09-12 18:40 ` Vadim Godunko
2009-09-16 23:19   ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox