S
Shea Martin
I have a function:
void f(char* format, ...)
{
va_list args;
char buf[128];
sprintf(buf, format, args);
printf(buf);
}
But I can't get sprintf to properly take the args I have given to f(). I can't
seem to find any examples on passing a va_list.
Any help would be appreciated.
Thanks.
~S
void f(char* format, ...)
{
va_list args;
char buf[128];
sprintf(buf, format, args);
printf(buf);
}
But I can't get sprintf to properly take the args I have given to f(). I can't
seem to find any examples on passing a va_list.
Any help would be appreciated.
Thanks.
~S