From b38024b5dc2cbbe5a7f9609797e855b5a9fc8ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Mon, 8 Mar 2021 21:47:43 +0100 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c724c32..70c1f96 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,17 @@ void zip_walk(struct zip_t *zip, const char *path) { } ``` +* Deletes zip archive entries. +```c +char *entries[] = {"unused.txt", "remove.ini", "delete.me"}; + +struct zip_t *zip = zip_open("foo.zip", 0, 'd'); +{ + zip_entries_delete(zip, entries, 3); +} +zip_close(zip); +``` + # Bindings Compile zip library as a dynamic library. ```shell