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