blob: 1dfafbc1d4f44cd1b3eca117405c5240b5d7a554 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "libioP.h"
#include "stdio.h"
int
getw(fp)
FILE *fp;
{
int w;
_IO_size_t bytes_read;
CHECK_FILE(fp, EOF);
bytes_read = _IO_sgetn (fp, (char*)&w, sizeof(w));
return sizeof(w) == bytes_read ? w : EOF;
}
|