comp.lang.ada
 help / color / mirror / Atom feed
From: steved@pacifier.com@199.2.117.163   (Steve Doiel)
Subject: Re: GNAT Strings
Date: 1996/04/18
Date: 1996-04-18T00:00:00+00:00	[thread overview]
Message-ID: <4l4d3c$4vo@news.pacifier.com> (raw)
In-Reply-To: 4l0oiq$4e8@arl-news-svc-2.compuserve.com

In <4l0oiq$4e8@arl-news-svc-2.compuserve.com>, 100331.2264@compuserve.com (R.J. Kirkbride) writes:
>Does anyone know how strings are stored in GNAT,
>and thus how they can be sent from C.
>
>I think a pointer is first sent to the string and then
>a pointer to a structure containing first and last pointers
>but I am not absolutely sure this is correct.
>
>Any help would be much appreciated,
>
>Rob.
>
Look to the package "Interfaces.c" in the file i-c.ads and you will find a
function:

     function To_Ada
     (Item     : in char_array;
      Trim_Nul : in Boolean := True)
      return     String;

This is probably the ticket you're looking for.





  parent reply	other threads:[~1996-04-18  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-16  0:00 GNAT Strings R.J. Kirkbride
1996-04-16  0:00 ` Robert Dewar
1996-04-18  0:00 ` steved [this message]
1996-04-21  0:00 ` Nasser Abbasi
replies disabled

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