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