MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / unzGoToFirstFile

Function unzGoToFirstFile

common/minizip/unzip.c:1178–1192  ·  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

1176 return UNZ_OK if there is no problem
1177*/
1178extern int ZEXPORT unzGoToFirstFile (unzFile file)
1179{
1180 int err=UNZ_OK;
1181 unz64_s* s;
1182 if (file==NULL)
1183 return UNZ_PARAMERROR;
1184 s=(unz64_s*)file;
1185 s->pos_in_central_dir=s->offset_central_dir;
1186 s->num_file=0;
1187 err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1188 &s->cur_file_info_internal,
1189 NULL,0,NULL,0,NULL,0);
1190 s->current_file_ok = (err == UNZ_OK);
1191 return err;
1192}
1193
1194/*
1195 Set the current file of the zipfile to the next file.

Callers 2

unzOpenInternalFunction · 0.85
unzLocateFileFunction · 0.85

Tested by

no test coverage detected