comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: Getting length of array from C
Date: Tue, 1 Feb 2005 18:22:11 -0800
Date: 2005-02-01T18:22:11-08:00	[thread overview]
Message-ID: <fM-dnWTrhvlzpZ3fRVn-sA@comcast.com> (raw)
In-Reply-To: 1107263868.447580.257310@z14g2000cwz.googlegroups.com

How is "My_Array_Type" defined?

Steve
(The Duck)

"Chuck" <cwinters15@comcast.net> wrote in message 
news:1107263868.447580.257310@z14g2000cwz.googlegroups.com...
> 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
> 





      parent reply	other threads:[~2005-02-02  2:22 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
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 [this message]
replies disabled

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