AUSAM/source/libS/rew.c

Compare this file to the similar file:
Show the results in this format:

#include	"stdio.h"

rewind(iop)
register struct _iobuf *iop;
{
	fflush(iop);
	seek(fileno(iop), 0, 0);
	iop->_cnt = 0;
	iop->_ptr = iop->_base;
	iop->_flag =& ~(_IOERR|_IOEOF);
}