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