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