/* Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem  */
int ZEXPORT unzGoToFirstFile(unzFile file)
/* Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem  */
int ZEXPORT unzGoToFirstFile(unzFile file)
{
    int err=UNZ_OK;
    unz64_s* s;
    if (file==NULL)
        return UNZ_PARAMERROR;
    s=(unz64_s*)file;
    s->pos_in_central_dir=s->offset_central_dir;
    s->num_file=0;
    err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
                                             &s->cur_file_info_internal,
                                             NULL,0,NULL,0,NULL,0);
    s->current_file_ok = (err == UNZ_OK);
    return err;
}