How do I call a function that gets passed as a paramater?
like this:
and how do i store it as a variable?
void a_func(void(*func)(void))
{
//how do i call func?
//this gives me an error:
func();
//is this hwo to store the function as a var?->
void* this_func = func;
}
And help would be appreciated :)