ref: a8e4d53e8f54a11b7c4dc1cedce0ce228160154e dir: /lib/c/feof.c/
#include <stdio.h> #undef feof int feof(FILE *fp) { return fp->flags & _IOEOF; }