Code: Show/Hide printf(const char *, ...); |
Code: Show/Hide int my_printf(char* fmt, ...) { int r; va_list args; va_start(args, fmt); r = vprintf(fmt, args); va_end(args); return r; } |
Dr Brain wrote: |
Found this on google for variable arguments: http://www.cprogramming.com/tutorial/lesson17.html
Looks pretty simple, though I've not personally used it. |