From: Kevin Krieser <kkrieser@ionet.net>
Subject: Re: C Interface question
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00 [thread overview]
Message-ID: <4s1q6c$2es@ionews.ionet.net> (raw)
In-Reply-To: DuA7BB.21@jvdsys.nextjk.stuyts.nl
> 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 ?
I haven't tried it, but if a 'Address is the same size as an Access type, and has the same value, then you may be able to
do the following:
function C_Function ( value : in Integer; Result : in System.Address ) return System.Address;
Then, just use Unchecked conversion to convert the result to an Access type, and access it that way.
------------------------------------
-- Kevin Krieser
-- kkrieser@ionet.net
next prev parent reply other threads:[~1996-07-11 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-09 0:00 C Interface question Jerry van Dijk
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-09 0:00 ` Laurent Guerby
1996-07-11 0:00 ` Jerry van Dijk
1996-07-16 0:00 ` David Kirkland
1996-07-11 0:00 ` Kevin Krieser [this message]
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