aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-31 17:22:46 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-03-31 17:22:51 +0200
commitd79a16a7d172ece3b01bf78ab7c6db02dc9cf267 (patch)
tree2fafeac48408d23825f79c7ccfe6d65a3d784eeb /include
parentd11440309c97c02a9ab70d6b9367cbfdac53a211 (diff)
Add mbio.h and freadrune()
Diffstat (limited to 'include')
-rw-r--r--include/mbio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbio.h b/include/mbio.h
new file mode 100644
index 0000000..ef2fcd5
--- /dev/null
+++ b/include/mbio.h
@@ -0,0 +1,16 @@
+#ifndef MLIB_MBIOO_H
+#define MLIB_MBIOO_H
+
+#include <stdio.h>
+
+#include "__charN_t.h"
+#include "__rune.h"
+
+typedef struct {
+ char8_t _buf[4];
+ int _fill;
+} u8_io_state;
+
+int freadrune(rune *, u8_io_state *, FILE *);
+
+#endif /* !MLIB_MBIOO_H */