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