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