comp.lang.ada
 help / color / mirror / Atom feed
* Interfaces.C.Strings
@ 2002-06-01 12:34 Philippe Tarroux
  2002-06-03 16:22 ` Interfaces.C.Strings sk
  2002-06-03 19:09 ` Interfaces.C.Strings Jeffrey Carter
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Tarroux @ 2002-06-01 12:34 UTC (permalink / 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?





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-03 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-01 12:34 Interfaces.C.Strings Philippe Tarroux
2002-06-03 16:22 ` Interfaces.C.Strings sk
2002-06-03 19:09 ` Interfaces.C.Strings Jeffrey Carter

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