I have a function of type void(*func)(int) and I get a pointer to this function, how can I know for sure that a pointer is really of this type?
if (typeof(pointer) == void(*func)(int)) {
//do something
}
Is that correct?
edit - I get the pointer from a function as an argument and I want to check the type of the pointer inside this function.