...
Uses gunzip to uncompress a file compressed with gzip.
Related functions: edmiCompressFile
Header:
#include "sdai.h"
Prototype:
EdmiError
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiUncompressFile(SdaiString |
...
compressedFile,
SdaiString unCompressedFile,
SdaiReal *rate);
|
Uncompress a compressed file
Arguments
...
Type | Name | Comment |
SdaiString | compressedFile | Name of the compressed file. |
SdaiString | unCompressedFile | Name of the uncompressed file. |
SdaiReal | rate | Returns the compression rate. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat; SdaiReal rate; SdaiString file = "c:/home/johnny/b43_765.stp"; |
...
SdaiString compFile = "c:/home/johnny/ b43_765.stp.zip"; |
...
. . . |
...
/* Compress */ |
...
if (rstat = edmiCompressFile(file, compFile, 4, &rate)) { |
...
printf("\nError %d in edmiCompressFile: %s", rstat, |
...
edmiGetErrorText(rstat)); |
...
goto error; |
...
} printf("\nCompressed %s with Compression Rate: %f", file, rate); |
...
. . |
...
. /* Uncompress */ |
...
if (rstat = edmiUncompressFile(compFile, file, &rate)) { |
...
printf("\nError %d in edmiUncompressFile: %s", rstat, |
...
edmiGetErrorText(rstat)); |
...
goto error; |
...
} printf("\nUncompressed %s, Compression Rate: %f", compFile, rate); |
...
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|