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