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