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