Annotation of 3BSD/libc/stdio/rew.c, revision 1.1

1.1     ! root        1: #include       <stdio.h>
        !             2: 
        !             3: rewind(iop)
        !             4: register struct _iobuf *iop;
        !             5: {
        !             6:        fflush(iop);
        !             7:        lseek(fileno(iop), 0L, 0);
        !             8:        iop->_cnt = 0;
        !             9:        iop->_ptr = iop->_base;
        !            10:        iop->_flag &= ~(_IOERR|_IOEOF);
        !            11: }

unix.superglobalmegacorp.com

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