From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91fb0c338516ed9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "Chuck" Newsgroups: comp.lang.ada Subject: Re: Getting length of array from C Date: 1 Feb 2005 05:17:48 -0800 Organization: http://groups.google.com Message-ID: <1107263868.447580.257310@z14g2000cwz.googlegroups.com> References: <1107231381.627097.52490@c13g2000cwb.googlegroups.com> <1107244808.d76a000ed3c64143f06cacb757120823@teranews> NNTP-Posting-Host: 192.35.37.20 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1107263873 21676 127.0.0.1 (1 Feb 2005 13:17:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 1 Feb 2005 13:17:53 +0000 (UTC) In-Reply-To: <1107244808.d76a000ed3c64143f06cacb757120823@teranews> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=192.35.37.20; posting-account=ZbJ9QA0AAACV4_cA0UHliRmUX1X_UsnT Xref: g2news1.google.com comp.lang.ada:8109 Date: 2005-02-01T05:17:48-08:00 List-Id: 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