Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem */
(file)
| 694 | return UNZ_OK if there is no problem |
| 695 | */ |
| 696 | extern int ZEXPORT unzGoToFirstFile (file) |
| 697 | unzFile file; |
| 698 | { |
| 699 | int err=UNZ_OK; |
| 700 | unz_s* s; |
| 701 | if (file==NULL) |
| 702 | return UNZ_PARAMERROR; |
| 703 | s=(unz_s*)file; |
| 704 | s->pos_in_central_dir=s->offset_central_dir; |
| 705 | s->num_file=0; |
| 706 | err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 707 | &s->cur_file_info_internal, |
| 708 | NULL,0,NULL,0,NULL,0); |
| 709 | s->current_file_ok = (err == UNZ_OK); |
| 710 | return err; |
| 711 | } |
| 712 | |
| 713 | |
| 714 | /* |
no test coverage detected