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