1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/* * dprintf.c */ #include <stdio.h> #include <stdarg.h> #undef DEBUG #define DEBUG 1 #include <dprintf.h> #ifndef dprintf void dprintf(const char *format, ...) { va_list ap; va_start(ap, format); vdprintf(format, ap); va_end(ap); } #endif