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