[SDL] [C/C++] Passing va_args possible?
oremanj at gmail.com
Sat Feb 25 23:07:16 PST 2006
On 2/25/06, Simon <simon.xhz at gmail.com> wrote:
> Hi there,
> I just started using va_args for a function I made that works pretty
> much like printf(char *format, ...). Now, I have a need for more
> than one of these functions and I was wondering if it was possible to
> pass the (...) to the other function.
> It's just that my function is already pretty long and I would have
> to repeat it for different uses (with very subtle variations) and i
> would just like to pass the (...) to a central function that will do
> the main work and then each of my functions can add their subtle
> variations to it.
> If it's not possible, I'll go another way, I was just wondering if
> it was possible and how to do it.
I don't really see how this is SDL-related, but you can just pass the
va_list to the central function.
More information about the SDL