In C, is it possible to forward the invocation of a variadic function? As in,
int my_printf(char *fmt, ...) { fprintf(stderr, \"Calling printf with fmt %
If you don't have a function analogous to vfprintf that takes a va_list instead of a variable number of arguments, you can't do it. See http://c-faq.com/varargs/handoff.html.
vfprintf
va_list
Example:
void myfun(const char *fmt, va_list argp) { vfprintf(stderr, fmt, argp); }