aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex.c
diff options
context:
space:
mode:
authorMaximilian Szengel <gnunet@maxsz.de>2012-06-25 11:15:41 +0000
committerMaximilian Szengel <gnunet@maxsz.de>2012-06-25 11:15:41 +0000
commite5aff270adfaf6ce72d13232ce909968c28baa3f (patch)
tree77b3b7b0f0af853365acf88469209a4de240ad91 /src/regex/regex.c
parent0ca232e391f8812bf59614b10d6550e06d2f3cf4 (diff)
downloadgnunet-e5aff270adfaf6ce72d13232ce909968c28baa3f.tar.gz
gnunet-e5aff270adfaf6ce72d13232ce909968c28baa3f.zip
new test for regex
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 bf65703b4..b0fb4c175 100644
--- a/src/regex/regex.c
+++ b/src/regex/regex.c
@@ -919,7 +919,15 @@ remove_epsilon (const char *str)
919 return GNUNET_strdup (str); 919 return GNUNET_strdup (str);
920} 920}
921 921
922 922/**
923 * Compare 'str1', starting from position 'k', with whole 'str2'
924 *
925 * @param str1 first string to compare, starting from position 'k'
926 * @param str2 second string for comparison
927 * @param k starting position in 'str1'
928 *
929 * @return -1 if any of the strings is NULL, 0 if equal, non 0 otherwise
930 */
923static int 931static int
924strkcmp (const char *str1, const char *str2, size_t k) 932strkcmp (const char *str1, const char *str2, size_t k)
925{ 933{