Unicode C
Unicode C
GZip Decompress File
See more Gzip Examples
Demonstrates how to uncompress a .gz compressed file to get the uncompressed original file.Chilkat Unicode C Downloads
#include <C_CkGzipW.h>
void ChilkatSample(void)
{
BOOL success;
HCkGzipW gzip;
success = FALSE;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
gzip = CkGzipW_Create();
success = CkGzipW_UncompressFile(gzip,L"qa_data/gzip/something.csv.gz",L"qa_output/something.csv");
if (success != TRUE) {
wprintf(L"%s\n",CkGzipW_lastErrorText(gzip));
CkGzipW_Dispose(gzip);
return;
}
wprintf(L"File successfully uncompressed and extracted from the Gzip compressed format.\n");
CkGzipW_Dispose(gzip);
}