Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. char zipped[100000];
  2.  
  3. char unzipped[100000];
  4.  
  5. HZIP hz = OpenZip(zipped, sizeof zipped, "");
  6. char buf[1024]; ZRESULT zr = ZR_MORE; unsigned long totsize = 0;
  7. while (zr == ZR_MORE)
  8. {
  9. ZIPENTRY ze; GetZipItem(hz, 0, &ze);
  10. zr = UnzipItem(hz, 0, unzipped, sizeof unzipped);
  11. unsigned long bufsize = 1024; if (zr == ZR_OK) bufsize = ze.unc_size - totsize;
  12. totsize += bufsize;
  13. }
  14. CloseZip(hz);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement