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