Hi, i have a question about function pointer. I am implementing a structure inside a microcontroller's program, to deal with some programed events. On my function pointer definition i am using as an argument a void pointer that receives many different structures as argument according to the function called. But some specific functions have no need arguments, and my problem is that i cant pass a void argument to a void pointer... well i dont know how... any idea on how to do that? For now i have to deal with both on different places.
FOr now i am using something like
typedef void (*arg_service_t)(void* service_param); //Service with argument
typedef void (*service_t)(void); //Service with no argument
Thank you!