With any variadic function, the function must know how to interpret the variable arguments list. With the printf() or scanf() functions, the format string tells the function what to expect.
The simplest technique is to pass an explicit count of the other arguments (which are normally all the same ...