This repository contains examples how to use libarchive and libzip to read, write and manipulate zip archives.
Example | libarchive | libzip |
---|---|---|
list contents of an archive | ✅ | ✅ |
create archive | ✅ | ✅ |
extract a single file | ✅ | ✅ |
add files to an existing archive | ❌ | ✅ |
cmake -B build
cmake --build build
./build/create_test_archive