fix getc - the classic error of trying to store EOF+0-255 in a char type..
[musl] / src / stdio / getw.c
1 #include <stdio.h>
2
3 int getw(FILE *f)
4 {
5         int x;
6         return fread(&x, sizeof x, 1, f) ? x : EOF;
7 }