comp.lang.ada
 help / color / mirror / Atom feed
* Ada/C [GNAT]: Accessing C arrays from Ada
@ 1996-08-26  0:00 Michael K Rohan
  1996-08-27  0:00 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 2+ messages in thread
From: Michael K Rohan @ 1996-08-26  0:00 UTC (permalink / raw)



Hello,

I'm trying to figure out the best way to use a C pointer as an array
from Ada.  I have a C service function which returns the number of items
and a pointer to a vector of the items:

        Query(int *n, item** items);

Interfacing from Ada is OK: I can get the number of items and the
pointer as an "access all Item", but how do I access the individual
items?

Thank you, in advance, for any help/info,
Michael.




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

end of thread, other threads:[~1996-08-27  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-26  0:00 Ada/C [GNAT]: Accessing C arrays from Ada Michael K Rohan
1996-08-27  0:00 ` David C. Hoos, Sr.

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