aboutsummaryrefslogtreecommitdiff
path: root/src/utils/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/io.h')
-rw-r--r--src/utils/io.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/utils/io.h b/src/utils/io.h
new file mode 100644
index 0000000..dcad76e
--- /dev/null
+++ b/src/utils/io.h
@@ -0,0 +1,28 @@
+#ifndef IO_H
+#define IO_H
+
+#include <stdint.h>
+
+// putchar() and getchar() are not part of io.c, but it's useful to
+// have those symbols declared here
+void putchar(char c);
+
+char getchar(void);
+
+void puts(char string[]);
+
+void prints(char string[]);
+
+void error(char string[]);
+
+void printdec(uint32_t number);
+
+void printhex(uint32_t number);
+
+void printbin(uint32_t number);
+
+void printdect(uint32_t number);
+
+void printhext(uint32_t number);
+
+#endif // IO_H