This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Function Callbacks?


On 02/07/2013 01:34 AM, The Devils Jester wrote:
> I have libffi functional in my application for standard, basic, tasks,
> but when it comes to calling C functions that expect a function
> pointer as an argument, I am at a loss and my google-fu is failing me
> today.

You should be able to cast a function pointer to a void pointer
and pass it as that.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]