summaryrefslogtreecommitdiff
path: root/www/w3c-httpd/files/patch-cc
blob: 29943ef194f9f88a518369e97028edd61415a558 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- Library/Implementation/HTString.c.orig	Sun Mar 31 20:00:59 2002
+++ Library/Implementation/HTString.c	Sun Mar 31 20:01:11 2002
@@ -58,41 +58,6 @@
 #endif
 
 
-/*
- * strcasestr(s1,s2) -- like strstr(s1,s2) but case-insensitive.
- */
-PUBLIC char * strcasestr ARGS2(char *,	s1,
-			       char *,	s2)
-{
-    char * try = s1;
-
-    if (!s1 || !s2 || !*s2) return s1;
-
-    while (*try) {
-	if (TOUPPER(*try) == TOUPPER(*s2)) {
-	    char * cur1 = try + 1;
-	    char * cur2 = s2 + 1;
-	    while (*cur1 && *cur2 && TOUPPER(*cur1) == TOUPPER(*cur2)) {
-		cur1++;
-		cur2++;
-	    }
-	    if (!*cur2) {
-		CTRACE(stderr,
-	      "Debug....... strcasestr(s1 = \"%s\", s2 = \"%s\") => \"%s\"\n",
-		       s1,s2,try);
-		return try;
-	    }
-	}
-	try++;
-    }
-    CTRACE(stderr,
-	   "Debug....... strcasestr(s1 = \"%s\", s2 = \"%s\") => No match\n",
-	   s1,s2);
-    return NULL;
-}
-
-
-
 /*	Allocate a new copy of a string, and returns it
 */
 PUBLIC char * HTSACopy