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