Break-out logging and time-related functions into lib modules
[khatus.git] / x5 / khatus_lib_log.c
diff --git a/x5/khatus_lib_log.c b/x5/khatus_lib_log.c
new file mode 100644 (file)
index 0000000..16a5509
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "khatus_lib_log.h"
+
+LogLevel _khatus_lib_log_level = Debug;
+
+void
+_fatal(char *fmt, ...) {
+       va_list ap;
+
+       va_start(ap, fmt);
+       fprintf(stderr, fmt, ap);
+       va_end(ap);
+       exit(EXIT_FAILURE);
+}
This page took 0.026474 seconds and 4 git commands to generate.