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