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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 01 Feb 2005 20:20:30 -0600 From: "Steve" Newsgroups: comp.lang.ada References: <1107231381.627097.52490@c13g2000cwb.googlegroups.com> <1107244808.d76a000ed3c64143f06cacb757120823@teranews> <1107263868.447580.257310@z14g2000cwz.googlegroups.com> Subject: Re: Getting length of array from C Date: Tue, 1 Feb 2005 18:22:11 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.22.63.157 X-Trace: sv3-s4tspkSH1dfCrg7ybG9CKBN4LSOhvKffhB7HIbttjsgM2XgZi5KYJq5CtrNrUEjL64RaBbhm6tt0j0y!hamlRGfcCFqhRe6o3cW6a+Mcv89/rSAAaKD1c4IG4Nn4ESK9RSnA8yeXb44v X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.22 Xref: g2news1.google.com comp.lang.ada:8126 Date: 2005-02-01T18:22:11-08:00 List-Id: How is "My_Array_Type" defined? Steve (The Duck) "Chuck" 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 >