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