int debug_ferror(DEBUG_FILE *stream);
debug_ferror returns non-zero if the error indicator is set for the stream.