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