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 %
Use vfprintf:
int my_printf(char *fmt, ...) { va_list va; int ret; va_start(va, fmt); ret = vfprintf(stderr, fmt, va); va_end(va); return ret; }