summaryrefslogtreecommitdiff
path: root/url.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2023-08-01 23:09:57 +0200
committerVincent Douillet <vincent@vdouillet.fr>2023-08-07 14:57:21 +0200
commitf172ffca292594147939280dab20cb03a4921fb6 (patch)
treebc63edcd5fbd474cdfdcced0d89b659c3bcc1cb4 /url.h
parent62b01654da4f1ae1a9aaeab106cea5e7bb9d77e3 (diff)
add log messages
Diffstat (limited to 'url.h')
-rw-r--r--url.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/url.h b/url.h
index b60f548..49b0aa1 100644
--- a/url.h
+++ b/url.h
@@ -35,6 +35,14 @@
/*
* Build an URL from the provided components.
+ * The first argument is the destination buffer where the URL will be written.
+ * It is required.
+ * The second argument is the size of the destination buffer. It is required.
+ * The third argument is the number of URL components provided in the following
+ * vargs.
+ * Returns the number of characters written to the destination buffer. If it
+ * is equal to the destination buffer size, it means the buffer was too small
+ * and the resulting URL has been truncated.
*/
size_t
url_build(char *, size_t, int,...);