I have looked up this question: How to pass argument got from ellipsis operator to other function?
But it can't be applied here:
void foo(const char *, ...); //call printf
void bar(const char *, ...); //call foo
I want something like this:
void bar(const char *format, ...){
foo(format, ...);
}
I know I can use vprintf
for printf
but there's no similar vfoo
for foo
How?