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