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