I have a function with some variable arguments params, and I need to call inside it another function passing this arguments. For example, someone call this function:
bool A(const char* format, ...)
{
//some work here...
bool res = B(format, /*other params*/);
return res;
}
bool B(const char* format, /**/, ...)
{
va_list arg;
va_start(arg, format);
//other work here...
}
I need to know, how to pass the variable params by the ellipse received by A to B function. Thanks