aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clog.c11
-rw-r--r--clog.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/clog.c b/clog.c
index 3d2e009..77addf9 100644
--- a/clog.c
+++ b/clog.c
@@ -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);
diff --git a/clog.h b/clog.h
index 216eed8..663af3f 100644
--- a/clog.h
+++ b/clog.h
@@ -3,6 +3,8 @@
#include <stdarg.h>
+int lprintf(const char *format, ...);
+
int vlprintf(const char *format, va_list ap);
#endif