.\" 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_COMPRESS" "" "06 October 2005" "" ""
.SH NAME
z_compress \- compress a PPP packet with Deflate compression.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int z_compress (void * \fIarg\fB, unsigned char * \fIrptr\fB, unsigned char * \fIobuf\fB, int \fIisize\fB, int \fIosize\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIarg\fB\fR
pointer to private state for the compressor
.TP
\fB\fIrptr\fB\fR
uncompressed packet (input)
.TP
\fB\fIobuf\fB\fR
compressed packet (output)
.TP
\fB\fIisize\fB\fR
size of uncompressed packet
.TP
\fB\fIosize\fB\fR
space available at \fIobuf\fR
.SH "DESCRIPTION"
.PP
Returns the length of the compressed packet, or 0 if the
packet is incompressible.