KI_DCOMPFILE
Argument | Enumeration | Purpose |
---|---|---|
srcfile$ | Name of source file to compress | |
dstfile$ | Name of target file | |
status | KDB_ERROR_ENUM | Return status |
size | Size of the uncompressed file |
KI_DCOMPFILE
This expands a file previously compressed by KI_COMPFILE using the same algorithm as the Unix utility compress working with a 16 bit dictionary.
If the dstfile$ parameter is blank, the original file will be overwritten. If the filename of the original file, srcfile$, contains a .Z suffix, then this will be removed. This mimics the behaviour of
$ uncompress myfile
and
$ uncompress myfile.Z
Both of which uncompress to a file called myfile.
If dstfile$ is not blank, then the original file will not be removed or overwritten. This emulates
$ cat myfile.Z | uncompress -c > myfile
The size of the uncompress file is stored in the optional size parameter.