mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 04:29:01 +08:00
6599da043e
From-SVN: r14877
14 lines
226 B
C
14 lines
226 B
C
#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;
|
|
}
|