MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / unzGoToFirstFile

Function unzGoToFirstFile

extlibs/minizip/src/unzip.c:1170–1184  ·  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

1168 return UNZ_OK if there is no problem
1169*/
1170extern int ZEXPORT unzGoToFirstFile(unzFile file)
1171{
1172 int err = UNZ_OK;
1173 unz64_s* s;
1174 if (file == NULL)
1175 return UNZ_PARAMERROR;
1176 s = (unz64_s*)file;
1177 s->pos_in_central_dir = s->offset_central_dir;
1178 s->num_file = 0;
1179 err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info,
1180 &s->cur_file_info_internal,
1181 NULL, 0,NULL, 0,NULL, 0);
1182 s->current_file_ok = (err == UNZ_OK);
1183 return err;
1184}
1185
1186/*
1187 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