From 01b950a8f719068508a245e9ee6b3d1b1fafe056 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 4 Feb 2022 20:18:35 +0100 Subject: improve some code comments --- util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index 797e599..f1eff23 100644 --- a/util.c +++ b/util.c @@ -66,7 +66,7 @@ strcasestr(const char *h, const char *n) return NULL; } -/* check if string has a non-empty scheme / protocol part */ +/* Check if string has a non-empty scheme / protocol part. */ int uri_hasscheme(const char *s) { @@ -79,6 +79,8 @@ uri_hasscheme(const char *s) return (*p == ':' && p != s); } +/* Parse URI string `s` into an uri structure `u`. + Returns 0 on success or -1 on failure */ int uri_parse(const char *s, struct uri *u) { -- cgit v1.2.3