Hi,
Would it be sufficient to put function genbet(x,y:shortreal):shortreal;C; in the calling program? Is it necessary to have the wrapper unit? If yes, why is a wrapper needed?
Thanks.
On Fri, 7 Jul 2000, Nathalie Jarosz wrote:
Actually, I would like to use a fonction named "genbet" in the randlib.c. For that, I have made a little program beta.pas:
unit beta; interface {$L /usr/local/include/randlib.h} function genbet(x,y:shortreal):shortreal;C; implementation end.
and test.pas:
uses beta; begin writeln(genbet(100,150)); end.