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