need help with ffi function pointers

Fergus Henderson fjh at
Sun Mar 2 06:46:07 EST 2003

On 02-Mar-2003, Wolfgang Thaller <wolfgang.thaller at> wrote:
> >I have a C function:
> >
> >f_setCallback( void (funptr*) () );

That is a very bad design.
You should change the interface of your C function to

	f_setCallback( void (funptr*) (void *), void * );

Fergus Henderson <fjh at>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <>  |     -- the last words of T. S. Garp.

More information about the FFI mailing list