comp.lang.ada
 help / color / mirror / Atom feed
From: "Philippe Tarroux" <tarroux@limsi.fr>
Subject: Interfaces.C.Strings
Date: Sat, 1 Jun 2002 14:34:44 +0200
Date: 2002-06-01T14:34:44+02:00	[thread overview]
Message-ID: <adfjbg$gec$1@upsn21.u-psud.fr> (raw)

I got a problem in interfacing a TclTk function with Ada:

This function returns a Chars_Ptr (Char *) type which is a pointer to a
char_array supposed to be nul terminated. In the present case, this array
contains pixel values and probably several nul values. The array I get from
the Interfaces.C.Strings.Value procedure is truncated to the first nul and I
was unable to find a way to bypass this limitation.

I came to the conclusion that there is no way in Ada to get an array pointed
by a Chars_Ptr  and containing nul values?

Am I wrong?





             reply	other threads:[~2002-06-01 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-01 12:34 Philippe Tarroux [this message]
2002-06-03 16:22 ` Interfaces.C.Strings sk
2002-06-03 19:09 ` Interfaces.C.Strings Jeffrey Carter
replies disabled

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