Welcome, Guest. Please login or register.

Author Topic: Functions with variable nr. of parameters Dealing with +1 argument....  (Read 2000 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas


You should have done a Google search for stdarg.h or va_start before you ask. It is all well documented.

However, the va_start macro always gets the variable name before the "...".

So you should use va_start(argptr, dest);

The way you use it is wrong. I wonder why it works at all.

Bye,
Thomas