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