|
|
1.1 ! root 1: /* @(#)getw.c 4.1 (Berkeley) 12/21/80 */ ! 2: #include <stdio.h> ! 3: ! 4: getw(iop) ! 5: register FILE *iop; ! 6: { ! 7: register i; ! 8: register char *p; ! 9: int w; ! 10: ! 11: p = (char *)&w; ! 12: for (i=sizeof(int); --i>=0;) ! 13: *p++ = getc(iop); ! 14: if (feof(iop)) ! 15: return(EOF); ! 16: return(w); ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.