fix treatment by fgetws of encoding errors as eof
[oweals/musl.git] / src / stdio / getwchar.c
1 #include "stdio_impl.h"
2 #include <wchar.h>
3
4 wint_t getwchar(void)
5 {
6         return fgetwc(stdin);
7 }
8
9 weak_alias(getwchar, getwchar_unlocked);