From 5326e8d2120394dc87c3c74f78f44a33f445ecd0 Mon Sep 17 00:00:00 2001 From: cpq Date: Mon, 15 Mar 2021 09:18:02 +0000 Subject: [PATCH] Update docs --- docs/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 7a577feb..fa27c55e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1064,11 +1064,12 @@ past the timer's expiration time. ### mg\_file\_read() ```c -char *mg_file_read(const char *path); +char *mg_file_read(const char *path, size_t *sizep); ``` Read file contents into a nul-terminated malloc-ed string. It is a caller's -responsibility to free() a returned pointer. +responsibility to free() a returned pointer. If `sizep` is not NULL, it will +return a file size in bytes. ### mg\_file\_size()