Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem */
| 1059 | return UNZ_OK if there is no problem |
| 1060 | */ |
| 1061 | extern int ZEXPORT unzGoToFirstFile(unzFile file) { |
| 1062 | int err=UNZ_OK; |
| 1063 | unz64_s* s; |
| 1064 | if (file==NULL) |
| 1065 | return UNZ_PARAMERROR; |
| 1066 | s=(unz64_s*)file; |
| 1067 | s->pos_in_central_dir=s->offset_central_dir; |
| 1068 | s->num_file=0; |
| 1069 | err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 1070 | &s->cur_file_info_internal, |
| 1071 | NULL,0,NULL,0,NULL,0); |
| 1072 | s->current_file_ok = (err == UNZ_OK); |
| 1073 | return err; |
| 1074 | } |
| 1075 | |
| 1076 | /* |
| 1077 | Set the current file of the zipfile to the next file. |
no test coverage detected