Is there any way to call a variadic function from another one?
I know that if I want to forward a variadic call, I can use a function that accepts va_list
parameters.
For example, If I declare my_printf
I can call vfprintf
inside.
Another way would be to use macros:
#define my_printf(a, ...) fprintf(a, __VA_ARGS__)
but is there a way to "create" a variadic call without being forced to use va_list
parameters?
In other words: is there any way (standard or not, using gcc extensions, etc.) that my_printf
can call fprintf
directly and not vfprintf
?