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