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