Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem
| 3190 | // Set the current file of the zipfile to the first file. |
| 3191 | // return UNZ_OK if there is no problem |
| 3192 | int unzGoToFirstFile (unzFile file) |
| 3193 | { |
| 3194 | int err; |
| 3195 | unz_s* s; |
| 3196 | if (file==NULL) return UNZ_PARAMERROR; |
| 3197 | s=(unz_s*)file; |
| 3198 | s->pos_in_central_dir=s->offset_central_dir; |
| 3199 | s->num_file=0; |
| 3200 | err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 3201 | &s->cur_file_info_internal, |
| 3202 | NULL,0,NULL,0,NULL,0); |
| 3203 | s->current_file_ok = (err == UNZ_OK); |
| 3204 | return err; |
| 3205 | } |
| 3206 | |
| 3207 | |
| 3208 | // Set the current file of the zipfile to the next file. |
no test coverage detected