Skip to content

Commit

Permalink
Minor API changes (#174)
Browse files Browse the repository at this point in the history
For public API s/zip_total_entries/zip_entries_total/
  • Loading branch information
kuba-- authored Mar 11, 2021
1 parent 9cf2857 commit d01ec45
Show file tree
Hide file tree
Showing 5 changed files with 1,080 additions and 1,084 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ struct zip_t *zip = zip_stream_open(NULL, 0, ZIP_DEFAULT_COMPRESSION_LEVEL, 'w')
zip_entry_write(zip, inbuf, strlen(inbuf));
}
zip_entry_close(zip);
/* copy compressed stream into outbuf */
zip_stream_copy(zip, (void **)&outbuf, &outbufsize);
}
Expand Down Expand Up @@ -199,7 +199,7 @@ free(buf);
* List of all zip entries
```c
struct zip_t *zip = zip_open("foo.zip", 0, 'r');
int i, n = zip_total_entries(zip);
int i, n = zip_entries_total(zip);
for (i = 0; i < n; ++i) {
zip_entry_openbyindex(zip, i);
{
Expand Down
Loading

0 comments on commit d01ec45

Please sign in to comment.