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