From cd692f27f4b88ac5abd12531536fab1d94eb607c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 14 Jan 2014 00:21:37 -0200 Subject: There was a bug in my implementaion. No reason not to use the glibc version. --- String.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'String.h') diff --git a/String.h b/String.h index 0662aa18..cb7f1acc 100644 --- a/String.h +++ b/String.h @@ -10,6 +10,7 @@ in the source distribution for its full text. */ #define String_startsWith(s, match) (strstr((s), (match)) == (s)) +#define String_contains_i(s1, s2) (strcasestr(s1, s2) != NULL) char* String_cat(const char* s1, const char* s2); @@ -21,8 +22,6 @@ char** String_split(const char* s, char sep, int* n); void String_freeArray(char** s); -int String_contains_i(const char* s, const char* match); - char* String_getToken(const char* line, const unsigned short int numMatch); #endif -- cgit v1.2.3