1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)rew.c	5.2 (Berkeley) 3/9/86";
   3: #endif LIBC_SCCS and not lint
   4: 
   5: #include    <stdio.h>
   6: 
   7: rewind(iop)
   8: register FILE *iop;
   9: {
  10:     fflush(iop);
  11:     lseek(fileno(iop), 0L, 0);
  12:     iop->_cnt = 0;
  13:     iop->_ptr = iop->_base;
  14:     iop->_flag &= ~(_IOERR|_IOEOF);
  15:     if (iop->_flag & _IORW)
  16:         iop->_flag &= ~(_IOREAD|_IOWRT);
  17: }

Defined functions

rewind defined in line 7; used 86 times

Defined variables

sccsid defined in line 2; never used
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1000
Valid CSS Valid XHTML 1.0 Strict