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