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