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