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