diff options
Diffstat (limited to 'lib/io/io.h')
| -rw-r--r-- | lib/io/io.h | 17 |
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 |