aboutsummaryrefslogtreecommitdiffstats
path: root/io/getwchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/getwchar.c')
-rw-r--r--io/getwchar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io/getwchar.c b/io/getwchar.c
new file mode 100644
index 0000000..a949a48
--- /dev/null
+++ b/io/getwchar.c
@@ -0,0 +1,4 @@
+#define NEED_WINT
+#include "io.h"
+
+wint_t getwchar(void) { return fgetwc(_stdstream_wrap(stream_input)); }