summaryrefslogtreecommitdiff
path: root/src/shared/printf.h
diff options
context:
space:
mode:
authordzwdz2022-04-14 12:19:51 +0200
committerdzwdz2022-04-14 12:19:51 +0200
commit2eead2f6eab2aa1fbc727ce28d9fa9a8e90a1eec (patch)
treed4bb0ae50e5f612a4fae67763414f72ea1a85b8a /src/shared/printf.h
parentdcb2ce6337f54a9821e3971976a07e767846e3c1 (diff)
kernel: port init's `printf` implementation
Diffstat (limited to 'src/shared/printf.h')
-rw-r--r--src/shared/printf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/printf.h b/src/shared/printf.h
new file mode 100644
index 0000000..45fd358
--- /dev/null
+++ b/src/shared/printf.h
@@ -0,0 +1,6 @@
+#pragma once
+#include <stdarg.h>
+#include <stddef.h>
+
+int __printf_internal(const char *fmt, va_list argp,
+ void (*back)(void*, const char*, size_t), void *back_arg);