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