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