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