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

Function gzclose

extlibs/minizip/src/gzclose.c:11–26  ·  view source on GitHub ↗

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. */

(file)

Source from the content-addressed store, hash-verified

9 That way the other gzclose functions can be used instead to avoid linking in
10 unneeded compression or decompression routines. */
11int ZEXPORT gzclose(file)
12
13gzFile file;
14{
15#ifndef NO_GZCOMPRESS
16 gz_statep state;
17
18 if (file == NULL)
19 return Z_STREAM_ERROR;
20 state = (gz_statep)file;
21
22 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
23#else
24 return gzclose_r(file);
25#endif
26}

Callers

nothing calls this directly

Calls 2

gzclose_rFunction · 0.85
gzclose_wFunction · 0.85

Tested by

no test coverage detected