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