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