A function with the following header:
int max(int n, va_list vals)
Called inside the function:
int max_first(int n, ...)
Needs a va_start(vals, n) invocation at the body's beginning? I tried without and it works but I don't understand which is the correct way of doing it.
int max(int n, va_list vals)
{
va_start(vals, n);
// etc
}