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