diff options
-rw-r--r-- | clog.c | 11 | ||||
-rw-r--r-- | clog.h | 2 |
2 files changed, 13 insertions, 0 deletions
@@ -6,6 +6,17 @@ #define TIMESTRLEN 20 +int lprintf(const char *format, ...) +{ + va_list ap; + va_start(ap, format); + + int n = vlprintf(format, ap); + + va_end(ap); + return n; +} + int vlprintf(const char *format, va_list ap) { time_t timer = time(NULL); @@ -3,6 +3,8 @@ #include <stdarg.h> +int lprintf(const char *format, ...); + int vlprintf(const char *format, va_list ap); #endif |