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