summaryrefslogtreecommitdiffstats
path: root/include/print.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/print.h')
-rw-r--r--include/print.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/print.h b/include/print.h
new file mode 100644
index 0000000..f4c942c
--- /dev/null
+++ b/include/print.h
@@ -0,0 +1,17 @@
+#ifndef _JOVE_LIB_PRINT_H
+#define _JOVE_LIB_PRINT_H 1
+
+#include <stdarg.h>
+
+void _klogf(const char *file, const char *func, int line, const char *fmt, ...);
+#define klogf(...) _klogf(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
+
+int kprintf(const char *fmt, ...);
+int ksprintf(char *s, const char *fmt, ...);
+int ksnprintf(char *s, int size, const char *fmt, ...);
+
+int kvprintf(const char *fmt, va_list ap);
+int kvsprintf(char *s, const char *fmt, va_list ap);
+int kvsnprintf(char *s, int size, const char *fmt, va_list ap);
+
+#endif