1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)getw.c 5.2.1 (2.11BSD GTE) 1/1/94";
3: #endif
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: }
21:
22: #ifdef pdp11
23: long
24: getlw(iop)
25: register FILE *iop;
26: {
27: register i;
28: register char *p;
29: long w;
30:
31: p = (char *)&w;
32: for (i=sizeof(long); --i>=0;)
33: *p++ = getc(iop);
34: if (feof(iop))
35: return(EOF);
36: return(w);
37: }
38: #endif
Defined functions
getlw
defined in line
23;
never used
getw
defined in line
7; used 59 times
- in /usr/ingres/source/support/creatdb.c line
387-393(3)
- in /usr/src/games/hunt/playit.c line
67
- in /usr/src/games/monop/cards.c line
76
- in /usr/src/games/sail/misc.c line
175
- in /usr/src/lib/ccom/TEST/tpr.c line
26,
35,
43-47(3),
79-83(2),
95-100(2),
106-132(10),
145-157(8),
164-172(5),
178,
184-192(6),
201,
215-223(3)
- in /usr/src/ucb/PORT/pascal/pdx/object/readobj.c line
134,
154
- in /usr/src/usr.bin/find/find.c line
853
- in /usr/src/usr.bin/refer/hunt2.c line
28,
86,
132,
263
- in /usr/src/usr.bin/refer/inv5.c line
13,
41
- in /usr/src/usr.bin/refer/inv6.c line
83
Defined variables
sccsid
defined in line
2;
never used