aboutsummaryrefslogtreecommitdiff
path: root/lib/include/fmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/fmt.h')
-rw-r--r--lib/include/fmt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/include/fmt.h b/lib/include/fmt.h
new file mode 100644
index 0000000..61215bc
--- /dev/null
+++ b/lib/include/fmt.h
@@ -0,0 +1,8 @@
+// Copyright (c) 2020 Johannes Stoelp
+
+#pragma once
+
+#include <stdarg.h>
+
+int vfmt(char* buf, unsigned long len, const char* fmt, va_list ap);
+int fmt(char* buf, unsigned long len, const char* fmt, ...);