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