5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 int ferror_unlocked( struct _PDCLIB_file_t * stream )
15 return stream->status & _PDCLIB_ERRORFLAG;
18 int ferror( struct _PDCLIB_file_t * stream )
21 int error = ferror_unlocked( stream );
22 funlockfile( stream );
29 #include <_PDCLIB_test.h>
33 /* Testing covered by clearerr(). */