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,fc95c1889fbed9e5,start X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: C Interface question Date: 1996/07/09 Message-ID: #1/1 X-Deja-AN: 167462645 organization: JerryWare HQ, Haarlem, Holland newsgroups: comp.lang.ada Date: 1996-07-09T00:00:00+00:00 List-Id: I need to call a C function that is defined as: int *function(int value, int *result); the function is called with a value and both the returned pointer and the result pointer contain data. So how do I interface to this ? If I use a procedure I lose the returned value and if I use a procedure I lose the result value. Of course I could write a interface function in C, but then I might as well drop Ada althogether and write the whole package in C... :-( -- ----------------------------------------------------------------------- -- Jerry van Dijk -- e-mail: jerry@jvdsys.nextjk.stuyts.nl -- -- Banking Consultant -- Member Team-Ada -- -- Ordina Finance BV -- Located at Haarlem, The Netherlands --