comp.lang.ada
 help / color / mirror / Atom feed
* Pointer
@ 2008-05-19  9:38 Sébastien
  2008-05-19  9:53 ` Pointer Dmitry A. Kazakov
  2008-05-19 16:17 ` Pointer Matthew Heaney
  0 siblings, 2 replies; 17+ messages in thread
From: Sébastien @ 2008-05-19  9:38 UTC (permalink / raw)


Hi,

I'm getting from a C interfaces a char**data in a System.Address. I have 
the following hypothesis:
- data is an array of n elements where n is known
- There is no memory issue (meaning data[i] with i < n is allocated)
- I do not have to free the memory (memory is managed by the C library)

How can I retrieve all my values in the C arrays using a loop to create 
some Ada String (Interfaces.C.Strings.Value)?

thanks by advance,
Sebastien



^ permalink raw reply	[flat|nested] 17+ messages in thread
* pointer
@ 2005-08-31 17:02 TC
  2005-08-31 18:40 ` pointer Martin Krischik
  2005-08-31 18:52 ` pointer Jeffrey Carter
  0 siblings, 2 replies; 17+ messages in thread
From: TC @ 2005-08-31 17:02 UTC (permalink / raw)


How translate this c code?

typedef struct
{
	unsigned char sParola [50];
	int iFrequenza;
}Parola;


struct Lista
{
	Parola P;
	struct Lista *next;
};


struct Lista *vett[26];


struct Lista *LF;

please help me!



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

end of thread, other threads:[~2008-05-19 17:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19  9:38 Pointer Sébastien
2008-05-19  9:53 ` Pointer Dmitry A. Kazakov
2008-05-19  9:54   ` Pointer Dmitry A. Kazakov
2008-05-19 10:13   ` Pointer Sébastien
2008-05-19 10:32     ` Pointer Dmitry A. Kazakov
2008-05-19 10:34     ` Pointer Ludovic Brenta
2008-05-19 11:31       ` Pointer Sébastien
2008-05-19 12:09         ` Pointer Ludovic Brenta
2008-05-19 12:09         ` Pointer Dmitry A. Kazakov
2008-05-19 12:47           ` Pointer Sébastien
2008-05-19 16:25         ` Pointer Matthew Heaney
2008-05-19 16:22     ` Pointer Matthew Heaney
2008-05-19 16:17 ` Pointer Matthew Heaney
2008-05-19 17:23   ` Pointer Sébastien
  -- strict thread matches above, loose matches on Subject: below --
2005-08-31 17:02 pointer TC
2005-08-31 18:40 ` pointer Martin Krischik
2005-08-31 18:52 ` pointer Jeffrey Carter

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