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