From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk)
Subject: C Interface question
Date: 1996/07/09
Date: 1996-07-09T00:00:00+00:00 [thread overview]
Message-ID: <DuA7BB.21@jvdsys.nextjk.stuyts.nl> (raw)
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 --
next reply other threads:[~1996-07-09 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-09 0:00 Jerry van Dijk [this message]
1996-07-09 0:00 ` C Interface question Laurent Guerby
1996-07-11 0:00 ` Jerry van Dijk
1996-07-16 0:00 ` David Kirkland
1996-07-09 0:00 ` Robert Dewar
1996-07-10 0:00 ` Theodore E. Dennison
1996-07-11 0:00 ` Robert Dewar
1996-07-11 0:00 ` Jerry van Dijk
1996-07-11 0:00 ` Ken Garlington
1996-07-11 0:00 ` Robert Dewar
1996-07-11 0:00 ` Kevin Krieser
1996-07-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox