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