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