]> pd.if.org Git - pdclib/blob - functions/stdio/ferror.c
Comment 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 #include <_PDCLIB_test.h>
20
21 int main( void )
22 {
23     /* Testing covered by clearerr(). */
24     return TEST_RESULTS;
25 }
26
27 #endif
28