#include <stdarg.h>
void printf(const char *fmt, ...) { va_list argp; va_start(argp, fmt);
... case 'd': i = va_arg(argp, int);