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