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