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