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