diff -r e6a16c3f47b2 -r 409a6de13f09 core/sm_stringutil.cpp --- a/core/sm_stringutil.cpp Fri May 14 18:22:03 2010 -0700 +++ b/core/sm_stringutil.cpp Fri May 14 19:28:10 2010 -0700 @@ -1274,37 +1274,6 @@ return (maxlen - llen - 1); } -const char *stristr(const char *str, const char *substr) -{ - if (!*substr) - { - return ((char *)str); - } - - char *needle = (char *)substr; - char *prevloc = (char *)str; - char *haystack = (char *)str; - - while (*haystack) - { - if (tolower(*haystack) == tolower(*needle)) - { - haystack++; - if (!*++needle) - { - return prevloc; - } - } - else - { - haystack = ++prevloc; - needle = (char *)substr; - } - } - - return NULL; -} - unsigned int strncopy(char *dest, const char *src, size_t count) { if (!count)