How can we apply a non-vararg function over a va_list?
问题 Backstory I'm porting the QuickCheck unit test framework to C (see the working code at GitHub). The syntax will be: for_all(property, gen1, gen2, gen3 ...); Where property is a function to test, for example bool is_odd(int) . gen1 , gen2 , etc. are functions that generate input values for property . Some generate integers, some generate chars, some generate strings, and so on. for_all will accept a function with arbitrary inputs (any number of arguments, any types of arguments). for_all will