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

Function unzClose

extlibs/minizip/src/unzip.c:801–814  ·  view source on GitHub ↗

Close a ZipFile opened with unzOpen. If there is files inside the .Zip opened with unzOpenCurrentFile (see later), these files MUST be closed with unzCloseCurrentFile before call unzClose. return UNZ_OK if there is no problem. */

Source from the content-addressed store, hash-verified

799 these files MUST be closed with unzCloseCurrentFile before call unzClose.
800 return UNZ_OK if there is no problem. */
801extern int ZEXPORT unzClose(unzFile file)
802{
803 unz64_s* s;
804 if (file == NULL)
805 return UNZ_PARAMERROR;
806 s = (unz64_s*)file;
807
808 if (s->pfile_in_zip_read != NULL)
809 unzCloseCurrentFile(file);
810
811 ZCLOSE64(s->z_filefunc, s->filestream);
812 TRYFREE(s);
813 return UNZ_OK;
814}
815
816
817/*

Callers 1

closeMethod · 0.85

Calls 1

unzCloseCurrentFileFunction · 0.85

Tested by

no test coverage detected