Store the function in a void pointer in the struct.

When you need to call the function first assign it to an appropriate prototype - as JustSid pointed out - and then call that prototype.


Always learn from history, to be sure you make the same mistakes again...