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