From dc6a079f1d013dc811ce5b03db46c3f267f17508 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 11 Nov 2018 16:44:07 -0500 Subject: Separate out deflateInit.3 and deflateEnd.3 --- deflateEnd.3 | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) mode change 120000 => 100644 deflateEnd.3 (limited to 'deflateEnd.3') diff --git a/deflateEnd.3 b/deflateEnd.3 deleted file mode 120000 index 7d7a5e2..0000000 --- a/deflateEnd.3 +++ /dev/null @@ -1 +0,0 @@ -deflate.3 \ No newline at end of file diff --git a/deflateEnd.3 b/deflateEnd.3 new file mode 100644 index 0000000..8818c91 --- /dev/null +++ b/deflateEnd.3 @@ -0,0 +1,40 @@ +.Dd November 9, 2018 +.Dt DEFLATEEND 3 +.Os +. +.Sh NAME +.Nm deflateEnd +.Nd free deflate stream +. +.Sh LIBRARY +.Lb libz +. +.Sh SYNOPSIS +.In zlib.h +.Ft int +.Fn deflateEnd "z_streamp strm" +. +.Sh DESCRIPTION +All dynamically allocated data structures +for this stream are freed. +This function discards any unprocessed input +and does not flush any pending output. +. +.Sh RETURN VALUES +.Fn deflateEnd +returns +.Dv Z_OK +if success, +.Dv Z_STREAM_ERROR +if the stream state was inconsistent, +.Dv Z_DATA_ERROR +if the stream was freed prematurely +(some input or output was discarded). +In the error case, +.Fa msg +may be set but then points to a static string +(which must not be deallocated). +. +.Sh SEE ALSO +.Xr deflate 3 , +.Xr deflateInit 3 -- cgit 1.4.1