MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / unzGoToFirstFile

Function unzGoToFirstFile

src/Setup/unzip.cpp:3192–3205  ·  view source on GitHub ↗

Set the current file of the zipfile to the first file. return UNZ_OK if there is no problem

Source from the content-addressed store, hash-verified

3190// Set the current file of the zipfile to the first file.
3191// return UNZ_OK if there is no problem
3192int 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.

Callers 4

unzOpenInternalFunction · 0.85
unzLocateFileFunction · 0.85
GetMethod · 0.85
UnzipMethod · 0.85

Tested by

no test coverage detected