projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
BSD 3 development
[unix-history]
/
usr
/
src
/
libc
/
stdio
/
getw.c
Commit
Line
Data
18e5fa7e
BJ
1
#include <stdio.h>
2
3
getw(iop)
4
register FILE *iop;
5
{
6
register i;
7
register char *p;
8
int w;
9
10
p = (char *)&w;
11
for (i=sizeof(int); --i>=0;)
12
*p++ = getc(iop);
13
if (feof(iop))
14
return(EOF);
15
return(w);
16
}