<< Previous | Next >> | |
|
int OpenInputCompressedFile( ZFILE * ifp, long fn );
Description
- Opens a file for input. This function sets up the LZ compression algorithm window associated with the ZFILE file. The second parameter is the file handle (FS2) or address (
#zimport
) of the input file to be opened. If the file is already compressed, after calling this function the file can be decompressed by callingReadCompressedFile()
. If the file handle points to an uncompressed FS2 file, after calling this function the resulting ZFILE file can be compressed by callingCompressFile()
.
- The
INPUT_COMPRESSION_BUFFERS
macro controls the memory allocated by this function. It defaults to 1.PARAMETERs
- ifp
- ZFILE file descriptor
- fn
- Address or handle of input file
Return Value
0
: Failure
1
: SuccessLibrary
- LZSS.LIB
See Also
- CloseInputCompressedFile, CompressFile, ReadCompressedFile
Dynamic C Functions | << Previous | Next >> | rabbit.com |