summaryrefslogtreecommitdiff
path: root/src/stdio/getw.c
blob: de9e985ae53a5c9a2d60497d03c64d1a574a5f87 (plain) (blame)
1
2
3
4
5
6
7
#include <stdio.h>

int getw(FILE *f)
{
	int x;
	return fread(&x, sizeof x, 1, f) ? x : EOF;
}