nant's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Initial import from FreeBSD RELENG_4:
[dragonfly.git]
/
contrib
/
libio
/
stdio
/
getw.c
1
#include "libioP.h"
2
#include "stdio.h"
3
4
int
5
getw(fp)
6
FILE *fp;
7
{
8
int w;
9
_IO_size_t bytes_read;
10
CHECK_FILE(fp, EOF);
11
bytes_read = _IO_sgetn (fp, (char*)&w, sizeof(w));
12
return sizeof(w) == bytes_read ? w : EOF;
13
}