aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex.c')
-rw-r--r--src/regex/regex.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/regex/regex.c b/src/regex/regex.c
index bf65703b48..b0fb4c1752 100644
--- a/src/regex/regex.c
+++ b/src/regex/regex.c
@@ -919,7 +919,15 @@ remove_epsilon (const char *str)
return GNUNET_strdup (str);
}
-
+/**
+ * Compare 'str1', starting from position 'k', with whole 'str2'
+ *
+ * @param str1 first string to compare, starting from position 'k'
+ * @param str2 second string for comparison
+ * @param k starting position in 'str1'
+ *
+ * @return -1 if any of the strings is NULL, 0 if equal, non 0 otherwise
+ */
static int
strkcmp (const char *str1, const char *str2, size_t k)
{