git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
013e2fcc38ad24f4e91bae935171633216c1e2e1
[reactos.git]
/
lib
/
crtdll
/
stdio
/
rewind.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
3
#include <msvcrt/stdio.h>
4
#include <msvcrt/io.h>
5
#include <msvcrt/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
}