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