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