aboutsummaryrefslogtreecommitdiff
path: root/lib/io/io.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2022-12-15 22:46:25 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2022-12-15 22:46:25 +0100
commitb9038b1c6b31a8f8d6b8b648cee0cf3b457dc24c (patch)
treed967cf38fba25c1a3eed621026f37891bba8f191 /lib/io/io.h
parent02062f0cf84e1cb7fb294de54b0c00db6323c529 (diff)
first version of io and wstdf
Diffstat (limited to 'lib/io/io.h')
-rw-r--r--lib/io/io.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/io/io.h b/lib/io/io.h
new file mode 100644
index 0000000..b68a75d
--- /dev/null
+++ b/lib/io/io.h
@@ -0,0 +1,17 @@
+#ifndef IO_H
+#define IO_H
+
+#include "../sys/io.h"
+
+void wstd(const char *buf);
+void rstd(char *buf, unsigned long count);
+
+void wstdf__(const char *buf, void **args);
+
+#define wstdf(buf, ...) { \
+ void *__wstdf__args__[] = { __VA_ARGS__ }; \
+ wstdf__(buf, __wstdf__args__); \
+}
+
+
+#endif