MCPcopy Create free account
hub / github.com/DentonW/DevIL / unzGoToNextFile

Function unzGoToNextFile

DevIL/test/Unzip/unzip.c:719–741  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

717 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
718*/
719extern 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/*

Callers 1

unzLocateFileFunction · 0.85

Tested by

no test coverage detected