blob: 9f13851e4835a1c4f9f4f0d5c05d07180bd732b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <stdio.h>
#include "_stdio.h"
#include "_safety.h"
/** reset file stream error indicator **/
void clearerr(FILE * stream)
{
SIGNAL_SAFE(0);
ASSERT_STREAM(stream, 0, 0);
flockfile(stream);
if (stream != NULL) {
stream->eof = 0;
stream->err = 0;
}
funlockfile(stream);
}
/***
clears the error and end-of-file indicators of ARGUMENT(stream).
***/
/*
STDC(1)
*/
|