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