about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-13 15:53:41 -0500
committerJune McEnroe <june@causal.agency>2018-11-13 15:53:41 -0500
commit3b0932f663a317e32104aff0695ced82ad3b9021 (patch)
treef8db95b48acbad4ddb20d1627dfce20a683a219b
parentAdd gzgets.3 (diff)
downloadzlib-man-pages-3b0932f663a317e32104aff0695ced82ad3b9021.tar.gz
zlib-man-pages-3b0932f663a317e32104aff0695ced82ad3b9021.zip
Add gzputc.3
Diffstat (limited to '')
-rw-r--r--Makefile1
-rw-r--r--gzputc.327
2 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8b758b0..2a092b3 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ MAN += gzfwrite.3
 MAN += gzgets.3
 MAN += gzopen.3
 MAN += gzprintf.3
+MAN += gzputc.3
 MAN += gzputs.3
 MAN += gzread.3
 MAN += gzsetparams.3
diff --git a/gzputc.3 b/gzputc.3
new file mode 100644
index 0000000..a6af26f
--- /dev/null
+++ b/gzputc.3
@@ -0,0 +1,27 @@
+.Dd November 13, 2018
+.Dt GZPUTC 3
+.Os
+.
+.Sh NAME
+.Nm gzputc
+.Nd write character to compressed file
+.
+.Sh LIBRARY
+.Lb libz
+.
+.Sh SYNOPSIS
+.In zlib.h
+.Ft int
+.Fn gzputc "gzFile file" "int c"
+.
+.Sh DESCRIPTION
+Writes
+.Fa c ,
+converted to an
+.Vt unsigned char ,
+into the compressed file.
+.
+.Sh RETURN VALUES
+.Fn gzputc
+returns the value that was written,
+or -1 in case of error.