> typedef int fnct_ptr (void *)
is it actually typedef int (*fnct_ptr)(void*);
which would be declaring funct_ptr as a type pointer to function that takes a void pointer and returns int.
ex.
Code:
#include <stdio.h>
typedef int (*fnct_ptr)(void*);
int test(void* p)
{
printf("in test\n");
return 1;
}
int main()
{
fnct_ptr f = test;
f(0);
return 0;
}