Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char zipped[100000];
- char unzipped[100000];
- HZIP hz = OpenZip(zipped, sizeof zipped, "");
- char buf[1024]; ZRESULT zr = ZR_MORE; unsigned long totsize = 0;
- while (zr == ZR_MORE)
- {
- ZIPENTRY ze; GetZipItem(hz, 0, &ze);
- zr = UnzipItem(hz, 0, unzipped, sizeof unzipped);
- unsigned long bufsize = 1024; if (zr == ZR_OK) bufsize = ze.unc_size - totsize;
- totsize += bufsize;
- }
- CloseZip(hz);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement