<< Previous | Next >>

CompressFile

void CompressFile( ZFILE * input, ZFILE * output );

Description

This function compresses the input file (uncompressed ZFILE, opened with OpenInputCompressFile()) using the LZ compression algorithm. The result is put into a user-specified output file (an empty ZFILE, opened with OpenOutputCompressedFile()).

The macro OUTPUT_COMPRESSION_BUFFERS must be defined with a positive non-zero value to use CompressFile() or a compile-time error will occur. The default value of OUTPUT_COMPRESSION_BUFFERS is zero.

Parameters

input
Input bit file

output
Output bit file

Return Value

None

Library

LZSS.LIB

See Also

OpenInputCompressedFile, OpenOutputCompressedFile


Dynamic C Functions << Previous | Next >> rabbit.com