1 Star 0 Fork 128

xinking129 / third_party_zlib_5

forked from OpenHarmony / third_party_zlib 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gzclose.c 668 Bytes
一键复制 编辑 原始数据 按行查看 历史
xinking129 提交于 2024-04-16 20:57 . update 1.3.1 version
/* gzclose.c -- zlib gzclose() function
* Copyright (C) 2004, 2010 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
/* gzclose() is in a separate file so that it is linked in only if it is used.
That way the other gzclose functions can be used instead to avoid linking in
unneeded compression or decompression routines. */
int ZEXPORT gzclose(gzFile file) {
#ifndef NO_GZCOMPRESS
gz_statep state;
if (file == NULL)
return Z_STREAM_ERROR;
state = (gz_statep)file;
return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
#else
return gzclose_r(file);
#endif
}
1
https://gitee.com/xinking129/third_party_zlib_5.git
git@gitee.com:xinking129/third_party_zlib_5.git
xinking129
third_party_zlib_5
third_party_zlib_5
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891