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