3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
10 #include "_PDCLIB_io.h"
12 int _PDCLIB_ferror_unlocked( FILE * stream )
14 return stream->status & _PDCLIB_ERRORFLAG;
17 int ferror( FILE * stream )
19 _PDCLIB_flockfile( stream );
20 int error = _PDCLIB_ferror_unlocked( stream );
21 _PDCLIB_funlockfile( stream );
28 #include "_PDCLIB_test.h"
32 /* Testing covered by clearerr(). */