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