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