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