int function_arg_count(function)
Returns the function number of arguments. If the function accepts a variable number of arguments, it returns its minimal number, for instance 1 for printf().