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