Sample code for 30+ languages & platforms
Unicode C++

UnGzip .tgz to get a .tar

See more Tar Archive Examples

A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkGzipW.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkGzipW gzip;

    success = gzip.UncompressFile(L"qa_data/tar/test.tgz",L"qa_output/test.tar");
    if (success != true) {
        wprintf(L"%s\n",gzip.lastErrorText());
    }
    else {
        wprintf(L"success.\n");
    }
    }