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