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