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