How to call functions by their pointers passing multiple arguments in C?
问题 I need to make a "function caller" function: it receives a generic function pointer ( void * ) and a variable number of arguments as arguments and it's got to call this function, passing the arguments, and return a generic pointer to the returning value. However, this entry-function pointer may point to any kind of function (with any returning type), even to functions with a constant number of arguments. It would be something like: void * function_caller(void * function_pointer, ...) { void *