Original Post
For example, below function accepts variable argument list.
ex) void Print(char* format, ...)
{
va_list vl;
va_start(vl, format);
vprintf(format, vl);
va_end(vl);
}
And this function too.
ex) void PrintError(char* format, ...);
When I call PrintError(), I want PrintError() to pass its all arguments to Print() and call it. So I coded like this :
ex) void PrintError(char* format, ...)
{
va_list vl;
va_start(vl);
Print(format, vl);
va_end(vl);
}
But it doesn''t work.
Can somebody tell me how I can pass variable argument list to another function?