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