git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
099b6b7dabb00083cfd684d76dfecb4fca89cc97
[reactos.git]
/
lib
/
crtdll
/
stdio
/
rewind.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
3
#include <crtdll/stdio.h>
4
#include <crtdll/io.h>
5
#include <crtdll/internal/file.h>
6
7
8
void rewind(FILE *f)
9
{
10
fflush(f);
11
lseek(fileno(f), 0L, SEEK_SET);
12
f->_cnt = 0;
13
f->_ptr = f->_base;
14
f->_flag &= ~(_IOERR|_IOEOF|_IOAHEAD);
15
16
}