#include "file.h" int feof(struct __opaque_file *stream) { return (stream->f_flags & FILE_EOF) != 0; }