summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-02-04 20:18:35 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-02-04 20:18:35 +0100
commit01b950a8f719068508a245e9ee6b3d1b1fafe056 (patch)
tree6c69a289b065511029942b209b981698e1c315d7 /util.c
parente9f70bdc2bf9eb75ee36ce32768109317fddaea1 (diff)
improve some code comments
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 3 insertions, 1 deletions
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)
{