git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
stdio
/
clearerr.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <crtdll/stdio.h>
3
#include <crtdll/errno.h>
4
#include <crtdll/internal/file.h>
5
6
#ifdef clearerr
7
#undef clearerr
8
void clearerr(FILE *stream);
9
#endif
10
11
void
12
clearerr(FILE *f)
13
{
14
if (!__validfp (f)) {
15
__set_errno (EINVAL);
16
return;
17
}
18
f->_flag &= ~(_IOERR|_IOEOF);
19
}