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

Function unzGoToFirstFile

contrib/unzip/unzip.c:1061–1074  ·  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

1059 return UNZ_OK if there is no problem
1060*/
1061extern int ZEXPORT unzGoToFirstFile(unzFile file) {
1062 int err=UNZ_OK;
1063 unz64_s* s;
1064 if (file==NULL)
1065 return UNZ_PARAMERROR;
1066 s=(unz64_s*)file;
1067 s->pos_in_central_dir=s->offset_central_dir;
1068 s->num_file=0;
1069 err=unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info,
1070 &s->cur_file_info_internal,
1071 NULL,0,NULL,0,NULL,0);
1072 s->current_file_ok = (err == UNZ_OK);
1073 return err;
1074}
1075
1076/*
1077 Set the current file of the zipfile to the next file.

Callers 4

unzOpenInternalFunction · 0.70
unzLocateFileFunction · 0.70
InternReadFileMethod · 0.50
MapArchiveMethod · 0.50

Tested by

no test coverage detected