2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 char *strcasestr(const char *s1, const char *s2)
12 register const char *s = s1;
13 register const char *p = s2;
21 || (tolower(*((unsigned char *)p)) == tolower(*((unsigned char *)s)))
36 || (tolower(*((unsigned char *)p)) == tolower(*((unsigned char *)s)))
46 return (*p) ? NULL : (char *) s1;