comp.lang.ada
 help / color / mirror / Atom feed
* C Interface question
@ 1996-07-09  0:00 Jerry van Dijk
  1996-07-09  0:00 ` Robert Dewar
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jerry van Dijk @ 1996-07-09  0:00 UTC (permalink / 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   --




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1996-07-16  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1996-07-11  0:00   ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox