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