/* return 1 if the end of file was reached, 0 elsewhere  */
int ZEXPORT unzeof(unzFile file)
/* return 1 if the end of file was reached, 0 elsewhere  */
int ZEXPORT unzeof(unzFile file)
{
	unz_s* s;
	file_in_zip_read_info_s* pfile_in_zip_read_info;
	if (file==NULL)
		return UNZ_PARAMERROR;
	s=(unz_s*)file;
    pfile_in_zip_read_info=s->pfile_in_zip_read;
	if (pfile_in_zip_read_info==NULL)
		return UNZ_PARAMERROR;
	if (pfile_in_zip_read_info->rest_read_uncompressed == 0)
		return 1;
	else
		return 0;
}