From 95700b6916c73e6ff2f644449046437a824270a0 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 29 Jan 2023 22:20:15 +0100 Subject: [PATCH] docs: Update function signature of minitar_read_contents() --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 0dc98cd..f22a68f 100644 --- a/docs/API.md +++ b/docs/API.md @@ -45,7 +45,7 @@ Same as `minitar_find_by_name()`, but matches the full path inside the archive i Same as `minitar_find_by_name()`, but matches the file type instead of the name. As with `minitar_find_by_name()`, this function starts searching from the current archive position and calling it in a loop until it returns -1 will find all matching entries. ### minitar_read_contents -`size_t minitar_read_contents(struct minitar* mp, struct minitar_entry* entry, char* buf, size_t max)` +`size_t minitar_read_contents(struct minitar* mp, const struct minitar_entry* entry, char* buf, size_t max)` Reads up to `max` bytes of an entry's contents from the archive stream `mp` and stores them into `buf`.