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