#include "file.h" int ferr(struct __opaque_file *stream) { return (stream->f_flags & FILE_ERR) != 0; }