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