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