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