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