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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b3a3c920575b35a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news-rtr.nyroc.rr.com!news-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail From: "REH" Newsgroups: comp.lang.ada References: <1154084819.088112.325730@p79g2000cwp.googlegroups.com> <1154119563.642347.13670@b28g2000cwb.googlegroups.com> <6lByg.12373$1Z5.8869@twister.nyroc.rr.com> Subject: Re: How to pass two dimensional arrays to C X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Message-ID: <7wByg.12375$1Z5.10703@twister.nyroc.rr.com> Date: Sat, 29 Jul 2006 04:30:59 GMT NNTP-Posting-Host: 69.205.134.80 X-Complaints-To: abuse@rr.com X-Trace: twister.nyroc.rr.com 1154147459 69.205.134.80 (Sat, 29 Jul 2006 00:30:59 EDT) NNTP-Posting-Date: Sat, 29 Jul 2006 00:30:59 EDT Organization: Road Runner Xref: g2news2.google.com comp.lang.ada:6008 Date: 2006-07-29T04:30:59+00:00 List-Id: "REH" wrote in message news:ntByg.12374$1Z5.5217@twister.nyroc.rr.com... > > int v = P + y * 1 + 2; > Agh!!! Forget to dereference (told you it was messy--all these years of Ada has spoiled me): int v = *(P + y * 1 + 2) or int v = P[y * 1 + 2]; OK, it's late and off to bed