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