MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gzclose

Function gzclose

freebsd/contrib/zstd/zlibWrapper/gzclose.c:14–28  ·  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

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

Callers

nothing calls this directly

Calls 2

gzclose_rFunction · 0.70
gzclose_wFunction · 0.70

Tested by

no test coverage detected