Passing variadic arguments?

Is there a portable way to pass variadic arguments from one fucntion to another variadic function?
I need to write a wrapper for a printf function, but it needs to be a member function to a class, so I can't use the preprocessor for that.
Basically, I want to turn
 
screen->printf("%d %d",1,5);

into this somehow:
 
driverStationHandle->Printf((linenum)n,"%d %d",1,5);

(assuming those variables exist, which they should)

Is there any way to do this?
IIRC, you had to pass the va_list to the variadic function.
Thank you, that helped a bit. Unfortunately, dsHandle->Printf doesn't support that, but we can use vsprintf with a va_list to get it down to just a char*, which DOES work.
Topic archived. No new replies allowed.