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