1.1 --- a/core/sm_stringutil.cpp Fri May 14 18:22:03 2010 -0700
1.2 +++ b/core/sm_stringutil.cpp Fri May 14 19:28:10 2010 -0700
1.3 @@ -1274,37 +1274,6 @@
1.4 return (maxlen - llen - 1);
1.5 }
1.6
1.7 -const char *stristr(const char *str, const char *substr)
1.8 -{
1.9 - if (!*substr)
1.10 - {
1.11 - return ((char *)str);
1.12 - }
1.13 -
1.14 - char *needle = (char *)substr;
1.15 - char *prevloc = (char *)str;
1.16 - char *haystack = (char *)str;
1.17 -
1.18 - while (*haystack)
1.19 - {
1.20 - if (tolower(*haystack) == tolower(*needle))
1.21 - {
1.22 - haystack++;
1.23 - if (!*++needle)
1.24 - {
1.25 - return prevloc;
1.26 - }
1.27 - }
1.28 - else
1.29 - {
1.30 - haystack = ++prevloc;
1.31 - needle = (char *)substr;
1.32 - }
1.33 - }
1.34 -
1.35 - return NULL;
1.36 -}
1.37 -
1.38 unsigned int strncopy(char *dest, const char *src, size_t count)
1.39 {
1.40 if (!count)