/var/www/restricted/ssh/stm32/www/stm32circle/
phpMyVisites | Open source web analytics
Pages: 1
Hello,I need a function to register an handler :
void SetHandler(u32 handler) { MyHandler = handler; }
Next I would like to call that function using something like this :
(void (*)(char)) (MyHandler)(c);
But, it doesn't compile Can someone give me an example ?Thank you in advance
Offline
move some parenthesis
((void (*)(char)) MyHandler)(c)
Casts are always right-to-left. What you wrote is the cast of function call result.
Last edited by ntrf.zns (2010-06-01 14:35:21)
Thanks a lot ! It was a really ugly mistake