Annotation of 3BSD/lib/libNS/getw.c, revision 1.1

1.1     ! root        1: /* Copyright (c) 1979 Regents of the University of California */
        !             2: #include       <stdio.h>
        !             3: 
        !             4: short getsh(iop)
        !             5: register struct _iobuf *iop;
        !             6: {
        !             7:        register i;
        !             8: 
        !             9:        i = getc(iop);
        !            10:        if (iop->_flag&_IOEOF)
        !            11:                return(-1);
        !            12:        return(i | (getc(iop)<<8));
        !            13: }
        !            14: getw(iop)
        !            15: register struct _iobuf *iop;
        !            16: {
        !            17:        register i;
        !            18: 
        !            19:        i = getsh(iop);
        !            20:        if (iop->_flag&_IOEOF)
        !            21:                return(-1);
        !            22:        return(i | (getsh(iop)<<16));
        !            23: }

unix.superglobalmegacorp.com

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