diff options
author | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-06-25 11:15:41 +0000 |
---|---|---|
committer | szengel <szengel@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-06-25 11:15:41 +0000 |
commit | 02a8e70010ae6cc7db690fda3c17249902bb73ab (patch) | |
tree | 77b3b7b0f0af853365acf88469209a4de240ad91 /src/regex/regex.c | |
parent | dfd2c93465137074ee7c16e4dea25bf542457337 (diff) |
new test for regex
git-svn-id: https://gnunet.org/svn/gnunet@22269 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/regex.c')
-rw-r--r-- | src/regex/regex.c | 10 |
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) { |