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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d5f43eec59cdbb5,start X-Google-Attributes: gid103376,public From: Danny Subject: Ada address of operator? Date: 1999/02/09 Message-ID: <36C02FFC.458368B1@aston.ac.uk>#1/1 X-Deja-AN: 442408323 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Aston University Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-09T00:00:00+00:00 List-Id: Hi, I'm trying to use a C library in an Ada function and a typical prototype from this library would be struct AType; struct AnotherType; int getObject( AType *pType, AnotherType **ppAnotherType ); I've imported the function okay and it is being called. The purpose of the function is to use AType as an IN parameter and return a pointer to AnotherType, which will be pointed to by ppAnotherType if you get what I mean. In Ada I have corresponding records for AType & AnotherType and have declared AnotherTypePtr and AnotherTypePtrPtr. What I think I need to do is pAnotherType : AntherTypePtr; ppAnotherType : AnotherTypePtrPtr; but I need to assign ppAnotherType the address of pAnotherType, the equivalent C code would be AnotherType *pAnotherType; AnotherType **ppAnotherType = &pAnotherType; any suggestions? -Danny