gzputc

Name

gzputc -- write character to a compressed file

Synopsis

#include <zlib.h>

int gzputc (gzFile file, int c);

Description

The gzputc() function shall write the single character c, converted from integer to unsigned character, to the compressed file referenced by file, which shall have been opened in a write mode (see gzopen() and gzdopen()).

Return Value

On success, gzputc() shall return the value written, otherwise gzputc() shall return -1.

Errors

On error, gzputc() shall return -1.