ref: 8336b733717f4fc2cf5ccf6647f1718760fc1bc8 dir: /src/libc/stdio/ferror.c/
#include <stdio.h> #undef ferror int ferror(FILE *fp) { return fp->flags & _IOERR; }