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