From: "Chuck" <cwinters15@comcast.net>
Subject: Re: Getting length of array from C
Date: 1 Feb 2005 05:17:48 -0800
Date: 2005-02-01T05:17:48-08:00 [thread overview]
Message-ID: <1107263868.447580.257310@z14g2000cwz.googlegroups.com> (raw)
In-Reply-To: <1107244808.d76a000ed3c64143f06cacb757120823@teranews>
Here's the deal. I currently have some Ada code. Quite a bit of it.
The originators of the code had done some C interfacing with the Ada
code. So, I have some procedures like the following:
procedure Write_Array( my_array : in My_Array_Type );
pragma Import( C, Write_Array, "c_write_array" );
The C function prototype from the header file I was given is:
void c_write_array( void *array );
In the C code is there anyway I can get the length of the incoming
array? So, is Ada actually passing in a structure or an array?
Hope this clears things up.
Chuck
next prev parent reply other threads:[~2005-02-01 13:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 4:16 Getting length of array from C Chuck
2005-02-01 5:26 ` Simon Wright
2005-02-01 7:25 ` Martin Krischik
2005-02-01 13:17 ` Chuck [this message]
2005-02-01 14:17 ` Martin Krischik
2005-02-01 20:07 ` Ludovic Brenta
2005-02-07 6:55 ` Dave Thompson
2005-02-02 0:15 ` Jeffrey Carter
2005-02-02 2:22 ` Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox