=========================================================================== 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)
| 681 | gzputc returns the value that was written, or -1 in case of error. |
| 682 | */ |
| 683 | int 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 | /* =========================================================================== |