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