1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)getw.c 5.2 (Berkeley) 3/9/86";
3: #endif LIBC_SCCS and not lint
4:
5: #include <stdio.h>
6:
7: getw(iop)
8: register FILE *iop;
9: {
10: register i;
11: register char *p;
12: int w;
13:
14: p = (char *)&w;
15: for (i=sizeof(int); --i>=0;)
16: *p++ = getc(iop);
17: if (feof(iop))
18: return(EOF);
19: return(w);
20: }
Defined functions
getw
defined in line
7; used 13 times
Defined variables
sccsid
defined in line
2;
never used