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