From: Victor Porton <porton@narod.ru>
Subject: How to convert a C "char *" value to Ada string?
Date: Tue, 22 Jul 2014 02:44:54 +0300
Date: 2014-07-22T02:44:54+03:00 [thread overview]
Message-ID: <lqk8lm$hss$1@speranza.aioe.org> (raw)
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.
--
Victor Porton - http://portonvictor.org
next reply other threads:[~2014-07-21 23:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 23:44 Victor Porton [this message]
2014-07-22 0:19 ` How to convert a C "char *" value to Ada string? Victor Porton
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