From b9038b1c6b31a8f8d6b8b648cee0cf3b457dc24c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 15 Dec 2022 22:46:25 +0100 Subject: first version of io and wstdf --- lib/io/io.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/io/io.h (limited to 'lib/io/io.h') 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 -- cgit v1.2.3-70-g09d2