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