projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
BSD 3 development
[unix-history]
/
usr
/
src
/
libc
/
stdio
/
rew.c
Commit
Line
Data
18e5fa7e
BJ
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
}