I have a function int handle_request(server* server, int conn_fd);
that takes in 2 arguments.
How do I assign it to this function pointer?
void (*func)(void* input, void* output)
I've been trying to do things like
void (*func)(void* input, void* output) = handle_request;
and tried these but I always get
warning: initialization from incompatible pointer type [enabled by default]