|
![](/i/fill.gif) |
>> cont is a pointer to a function that is expected to return a pointer
>> to a function. The code here causes a series of functions to be
>> called, each one specifying another function to be called afterwards
>> by returning the address of the function to be called.
>>
>
> I was thinking the same, but I can't seem to find the right type
> definition to make it work without casting to and from void*... Which is
> apparently illegal
This is example code, so it might not be literally runnable... (It might
be simplified somewhat.)
> I'm not too comfortable with function pointers though, so it's likely
> that I'm missing something here... Any hints?
Don't look at me! ;-)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |