MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / unzGoToFirstFile

Function unzGoToFirstFile

ZLib/minizip/unzip.c:1180–1194  ·  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

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

Callers 3

LoadFileMethod · 0.85
unzOpenInternalFunction · 0.85
unzLocateFileFunction · 0.85

Tested by

no test coverage detected