summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/stdio/getwchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/stdio/getwchar.c')
-rw-r--r--libc-top-half/musl/src/stdio/getwchar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/stdio/getwchar.c b/libc-top-half/musl/src/stdio/getwchar.c
new file mode 100644
index 0000000..bd89e0e
--- /dev/null
+++ b/libc-top-half/musl/src/stdio/getwchar.c
@@ -0,0 +1,9 @@
+#include "stdio_impl.h"
+#include <wchar.h>
+
+wint_t getwchar(void)
+{
+ return fgetwc(stdin);
+}
+
+weak_alias(getwchar, getwchar_unlocked);