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