Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem */
| 1178 | return UNZ_OK if there is no problem |
| 1179 | */ |
| 1180 | extern int ZEXPORT unzGoToFirstFile (unzFile file) |
| 1181 | { |
| 1182 | int err=UNZ_OK; |
| 1183 | unz64_s* s; |
| 1184 | if (file==NULL) |
| 1185 | return UNZ_PARAMERROR; |
| 1186 | s=(unz64_s*)file; |
| 1187 | s->pos_in_central_dir=s->offset_central_dir; |
| 1188 | s->num_file=0; |
| 1189 | err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 1190 | &s->cur_file_info_internal, |
| 1191 | NULL,0,NULL,0,NULL,0); |
| 1192 | s->current_file_ok = (err == UNZ_OK); |
| 1193 | return err; |
| 1194 | } |
| 1195 | |
| 1196 | /* |
| 1197 | Set the current file of the zipfile to the next file. |
no test coverage detected