summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.xyz>2021-01-17 20:18:37 -0600
committerDanny Holman <dholman@gymli.xyz>2021-01-17 20:18:37 -0600
commit611f098bc38256adf2efadbc0b98138a5b4489de (patch)
tree86cecd785c9cee14783d5883f76ff410fd01450d /include/kernel
parent0237288ecc558e3da15fcb7ee1b28ad803e28a4d (diff)
kernel: implement a basic printf function
Implement a basic printf function using primitives from the TTY library. Signed-off-by: Danny Holman <dholman@gymli.xyz>
Diffstat (limited to 'include/kernel')
-rw-r--r--include/kernel/io.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel/io.h b/include/kernel/io.h
new file mode 100644
index 0000000..bef87af
--- /dev/null
+++ b/include/kernel/io.h
@@ -0,0 +1,10 @@
+#ifndef IO_H
+#define IO_H
+
+#include <kernel/tty.h>
+#include <stdarg.h>
+
+int vprintf(const char *fmt, va_list args);
+int printf(const char *fmt, ...);
+
+#endif