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