]> pd.if.org Git - pdclib/blob - functions/stdio/ferror.c
Whitespace cleanups.
[pdclib] / functions / stdio / ferror.c
1 /* ferror( FILE * )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <stdio.h>
8
9 #ifndef REGTEST
10
11 int ferror( struct _PDCLIB_file_t * stream )
12 {
13     return stream->status & _PDCLIB_ERRORFLAG;
14 }
15
16 #endif
17
18 #ifdef TEST
19
20 #include "_PDCLIB_test.h"
21
22 int main( void )
23 {
24     /* Testing covered by clearerr(). */
25     return TEST_RESULTS;
26 }
27
28 #endif