blob: 9d427e1fec0bcedb71f4d8b11aee1fcd7ea49be3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include "nonstd/assert.h"
#include "_stdio.h"
/** tests the file stream error indicator **/
int ferror(FILE *stream)
{
ASSERT_NONNULL(stream);
/*
RETURN(0, the error indicator is not set);
RETURN(NONZERO, the error indicator is set);
*/
return stream->err;
}
/***
tests the error indicator of ARGUMENT(stream).
***/
/*
STDC(1)
*/
|