diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-04 20:18:35 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-04 20:18:35 +0100 |
commit | 01b950a8f719068508a245e9ee6b3d1b1fafe056 (patch) | |
tree | 6c69a289b065511029942b209b981698e1c315d7 /util.c | |
parent | e9f70bdc2bf9eb75ee36ce32768109317fddaea1 (diff) |
improve some code comments
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |