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