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