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