Annotation of 43BSDTahoe/lib/libc/stdio/getw.c, revision 1.1

1.1     ! root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.