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.
11 char *strcasestr(const char *s1
, const char *s2
)
13 register const char *s
= s1
;
14 register const char *p
= s2
;
22 || (tolower(*((unsigned char *)p
)) == tolower(*((unsigned char *)s
)))
37 || (tolower(*((unsigned char *)p
)) == tolower(*((unsigned char *)s
)))
47 return (*p
) ? NULL
: (char *) s1
;
50 libc_hidden_def(strcasestr
)