Set the current file of the zipfile to the next file. return UNZ_OK if there is no problem return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. */
(file)
| 717 | return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. |
| 718 | */ |
| 719 | extern int ZEXPORT unzGoToNextFile (file) |
| 720 | unzFile file; |
| 721 | { |
| 722 | unz_s* s; |
| 723 | int err; |
| 724 | |
| 725 | if (file==NULL) |
| 726 | return UNZ_PARAMERROR; |
| 727 | s=(unz_s*)file; |
| 728 | if (!s->current_file_ok) |
| 729 | return UNZ_END_OF_LIST_OF_FILE; |
| 730 | if (s->num_file+1==s->gi.number_entry) |
| 731 | return UNZ_END_OF_LIST_OF_FILE; |
| 732 | |
| 733 | s->pos_in_central_dir += SIZECENTRALDIRITEM + s->cur_file_info.size_filename + |
| 734 | s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment ; |
| 735 | s->num_file++; |
| 736 | err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 737 | &s->cur_file_info_internal, |
| 738 | NULL,0,NULL,0,NULL,0); |
| 739 | s->current_file_ok = (err == UNZ_OK); |
| 740 | return err; |
| 741 | } |
| 742 | |
| 743 | |
| 744 | /* |
no test coverage detected