Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
5978eb703ce0e64dd778a88c1ffffb76fe5e2202
/
.
/
src
/
stdio
/
clearerr.c
blob: 3bf94d30795d76d9d408000ac3f911f16090437f [
file
] [
log
] [
blame
]
Rich Felker
0b44a03
2011-02-12 00:22:29 -0500
[
diff
] [
blame
]
1
#include
"stdio_impl.h"
2
3
void
clearerr
(
FILE
*
f
)
4
{
5
FLOCK
(
f
);
6
f
->
flags
&=
~(
F_EOF
|
F_ERR
);
7
FUNLOCK
(
f
);
8
}
9
10
weak_alias
(
clearerr
,
clearerr_unlocked
);