Update README.md

This commit is contained in:
Kuba Podgórski 2021-03-08 21:47:43 +01:00 committed by GitHub
parent ad87c52a9a
commit b38024b5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 # Bindings
Compile zip library as a dynamic library. Compile zip library as a dynamic library.
```shell ```shell