From: Victor Porton <porton@narod.ru>
Subject: Re: How to convert a C "char *" value to Ada string?
Date: Tue, 22 Jul 2014 03:19:10 +0300
Date: 2014-07-22T03:19:10+03:00 [thread overview]
Message-ID: <lqkalu$lnq$1@speranza.aioe.org> (raw)
In-Reply-To: lqk8lm$hss$1@speranza.aioe.org
Victor Porton wrote:
> How to convert a C "char *" value to Ada string?
>
> There is
>
> function To_Ada (Item : in char_array;
> Trim_Nul : in Boolean := True)
> return String;
>
> in package Interfaces.C, but it receives an array not a pointer (=
> access).
>
> So I don't understand how to do this simple thing.
Oh, Interfaces.C.Strings.
--
Victor Porton - http://portonvictor.org
next prev parent reply other threads:[~2014-07-22 0:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 23:44 How to convert a C "char *" value to Ada string? Victor Porton
2014-07-22 0:19 ` Victor Porton [this message]
2014-07-22 0:28 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox