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