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