Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem
| 3385 | // Set the current file of the zipfile to the first file. |
| 3386 | // return UNZ_OK if there is no problem |
| 3387 | int unzGoToFirstFile (unzFile file) |
| 3388 | { |
| 3389 | int err; |
| 3390 | unz_s* s; |
| 3391 | if (file==NULL) return UNZ_PARAMERROR; |
| 3392 | s=(unz_s*)file; |
| 3393 | s->pos_in_central_dir=s->offset_central_dir; |
| 3394 | s->num_file=0; |
| 3395 | err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 3396 | &s->cur_file_info_internal, |
| 3397 | NULL,0,NULL,0,NULL,0); |
| 3398 | s->current_file_ok = (err == UNZ_OK); |
| 3399 | return err; |
| 3400 | } |
| 3401 | |
| 3402 | |
| 3403 | // Set the current file of the zipfile to the next file. |
no test coverage detected