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