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