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