5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
12 #include <_PDCLIB_io.h>
14 int _PDCLIB_ferror_unlocked( FILE * stream )
16 return stream->status & _PDCLIB_ERRORFLAG;
19 int ferror( FILE * stream )
21 _PDCLIB_flockfile( stream );
22 int error = _PDCLIB_ferror_unlocked( stream );
23 _PDCLIB_funlockfile( stream );
30 #include <_PDCLIB_test.h>
34 /* Testing covered by clearerr(). */