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