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