MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / gzputc

Function gzputc

zlib/gzio.c:683–690  ·  view source on GitHub ↗

=========================================================================== Writes c, converted to an unsigned char, into the compressed file. gzputc returns the value that was written, or -1 in case of error. */

(file, c)

Source from the content-addressed store, hash-verified

681 gzputc returns the value that was written, or -1 in case of error.
682*/
683int ZEXPORT gzputc(file, c)
684 gzFile file;
685 int c;
686{
687 unsigned char cc = (unsigned char) c; /* required for big endian systems */
688
689 return gzwrite(file, &cc, 1) == 1 ? (int)cc : -1;
690}
691
692
693/* ===========================================================================

Callers

nothing calls this directly

Calls 1

gzwriteFunction · 0.85

Tested by

no test coverage detected