{"id":1777,"date":"2013-12-05T14:26:18","date_gmt":"2013-12-05T19:26:18","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1777"},"modified":"2013-12-13T12:36:45","modified_gmt":"2013-12-13T17:36:45","slug":"a-quick-lesson-in-zip-file-c-libraries","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2013\/a-quick-lesson-in-zip-file-c-libraries\/","title":{"rendered":"A quick lesson in zip file C libraries"},"content":{"rendered":"<p>here are all the confusing mostly-incomplete zip file solutions:<\/p>\n<ul>\n<li>zlib\tTHE lib; only does ONE file, knows nothing about .zip containers; gz uses zlib, works on ONE file (the tar file, hence .tar.gz)<\/li>\n<li>miniz\tsome google code HACKERY that does exactly what i want (.zip handling in one header file) but DOES NOT WORK &#8211; erp, yes it does, id10t<\/li>\n<li>minizip\ta zlib-bundled addon package that allows for working with .zip files<\/li>\n<li>boost\tyou can bake zlib into boost but again, it knows nothing about .zip files, MOTHER FRACK<\/li>\n<li>libzip\tANOTHER library, supposedly handles .zip files &#8211; REQUIRES ZLIB DOH, might as well use minizip<\/li>\n<\/ul>\n<p>In the end, miniz made it pretty easy (once I <a href=\"http:\/\/stackoverflow.com\/questions\/16384943\/extracting-file-inside-of-directory-with-miniz\/20507045#20507045\" title=\"HOWTO miniz\">used it correctly<\/a>).  Remember, a .zip file is a <strong>container<\/strong> of compressed files, doh.<\/p>\n<p>That was fun!  \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>here are all the confusing mostly-incomplete zip file solutions: zlib THE lib; only does ONE file, knows nothing about .zip containers; gz uses zlib, works on ONE file (the tar file, hence .tar.gz) miniz some google code HACKERY that does exactly what i want (.zip handling in one header file) but DOES NOT WORK &#8211; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[22],"tags":[],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-cpp"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-sF","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=1777"}],"version-history":[{"count":8,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1777\/revisions"}],"predecessor-version":[{"id":1788,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1777\/revisions\/1788"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}