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