MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / unzGoToFirstFile

Function unzGoToFirstFile

src/core/zip/MiniZip/unzip.c:1179–1193  ·  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

1177 return UNZ_OK if there is no problem
1178*/
1179extern int ZEXPORT unzGoToFirstFile (unzFile file)
1180{
1181 int err=UNZ_OK;
1182 unz64_s* s;
1183 if (file==NULL)
1184 return UNZ_PARAMERROR;
1185 s=(unz64_s*)file;
1186 s->pos_in_central_dir=s->offset_central_dir;
1187 s->num_file=0;
1188 err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1189 &s->cur_file_info_internal,
1190 NULL,0,NULL,0,NULL,0);
1191 s->current_file_ok = (err == UNZ_OK);
1192 return err;
1193}
1194
1195/*
1196 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