aboutsummaryrefslogtreecommitdiff
path: root/lib/strequal.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-15 09:56:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-15 09:56:34 +0000
commit36e56f36ada9499698db01ca509b7fe5d8d33811 (patch)
treee6e005208472a874cf10026a2229c3637e345830 /lib/strequal.c
parent0a9984c27e083c6f85cf24819cb2acabd4367ca7 (diff)
remove Curl_strcasestr() since there is no code at all using this function!
Diffstat (limited to 'lib/strequal.c')
-rw-r--r--lib/strequal.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/strequal.c b/lib/strequal.c
index ac9075d58..e8c667497 100644
--- a/lib/strequal.c
+++ b/lib/strequal.c
@@ -76,29 +76,6 @@ int curl_strnequal(const char *first, const char *second, size_t max)
#endif
}
-/*
- * Curl_strcasestr() finds the first occurrence of the substring needle in the
- * string haystack. The terminating `\0' characters are not compared. The
- * matching is done CASE INSENSITIVE, which thus is the difference between
- * this and strstr().
- */
-char *Curl_strcasestr(const char *haystack, const char *needle)
-{
-#if defined(HAVE_STRCASESTR)
- return strcasestr(haystack, needle);
-#else
- size_t nlen = strlen(needle);
- size_t hlen = strlen(haystack);
-
- while(hlen-- >= nlen) {
- if(curl_strnequal(haystack, needle, nlen))
- return (char *)haystack;
- haystack++;
- }
- return NULL;
-#endif
-}
-
#ifndef HAVE_STRLCAT
/*
* The strlcat() function appends the NUL-terminated string src to the end