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. */
| 799 | these files MUST be closed with unzCloseCurrentFile before call unzClose. |
| 800 | return UNZ_OK if there is no problem. */ |
| 801 | extern 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 | /* |
no test coverage detected