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