MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / unzClose

Function unzClose

common/minizip/unzip.c:808–821  ·  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

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

Callers 7

mainFunction · 0.85
CloseMethod · 0.85
close_archiveFunction · 0.85
sr_new_virtual_deviceFunction · 0.85
close_archiveFunction · 0.85

Calls 1

unzCloseCurrentFileFunction · 0.85

Tested by

no test coverage detected