Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem */
| 1168 | return UNZ_OK if there is no problem |
| 1169 | */ |
| 1170 | extern int ZEXPORT unzGoToFirstFile(unzFile file) |
| 1171 | { |
| 1172 | int err = UNZ_OK; |
| 1173 | unz64_s* s; |
| 1174 | if (file == NULL) |
| 1175 | return UNZ_PARAMERROR; |
| 1176 | s = (unz64_s*)file; |
| 1177 | s->pos_in_central_dir = s->offset_central_dir; |
| 1178 | s->num_file = 0; |
| 1179 | err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info, |
| 1180 | &s->cur_file_info_internal, |
| 1181 | NULL, 0,NULL, 0,NULL, 0); |
| 1182 | s->current_file_ok = (err == UNZ_OK); |
| 1183 | return err; |
| 1184 | } |
| 1185 | |
| 1186 | /* |
| 1187 | Set the current file of the zipfile to the next file. |
no test coverage detected