diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-19 18:15:55 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-19 18:16:38 +0200 |
commit | 26a77087027327d72d7229866a1ce12ad11a4d63 (patch) | |
tree | bfbf6b6704c8f853a1063b7ff3c7164d4b085ae1 /url.h | |
parent | 7caf4597bcfb64dac04b7190dab1022f1bc4e141 (diff) |
rework url_build function to end varargs with NULL
Diffstat (limited to 'url.h')
-rw-r--r-- | url.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -49,13 +49,12 @@ check_request_path(char *); * 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. + * The remaining arguments are the url parts * 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,...); +url_build(char *, size_t,...); #endif /* URL_H */ |