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