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