.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "Z_COMP_ALLOC" "" "06 October 2005" "" ""
.SH NAME
z_comp_alloc \- allocate space for a compressor.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void * z_comp_alloc (unsigned char * \fIoptions\fB, int \fIopt_len\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIoptions\fB\fR
pointer to CCP option data
.TP
\fB\fIopt_len\fB\fR
length of the CCP option at \fIoptions\fR\&.
.SH "DESCRIPTION"
.PP
The \fIoptions\fR pointer points to the a buffer containing the
CCP option data for the compression being negotiated. It is
formatted according to RFC1979, and describes the window
size that the peer is requesting that we use in compressing
data to be sent to it.
.PP
Returns the pointer to the private state for the compressor,
or NULL if we could not allocate enough memory.