Check that the number of varargs is at least the minimum what we expect.
Fixed args should not be included.
Use check_vararg_fixed_arg_count to extract the varargs slice from full function arguments.
Check whether an operation that writes to a target buffer was successful.
Accordingly select return value.
Local helper function to be used in Windows shims.