unzip compressed buffer to memory. Derived from gzip source code.
gcc -D_GNU_SOURCE main.c inflate.c
bzero(&zip);
zip.inbuf = CompressedDataBufer;
zip.inbufsiz = CompressedDataBufferSize;
unzip(&zip, NULL);
bzero(&zip);
zip.inbuf = CompressedDataBufer;
zip.inbufsiz = CompressedDataBufferSize;
unzip(&zip, "foo/bar");
bzero(&zip);
zip.inbuf = CompressedDataBufer;
zip.inbufsiz = CompressedDataBufferSize;
zip.outbuf = malloc(DecompressedDataSize);
unzip(&zip, "foo/bar");