1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2002 Manuel Novoa III
10 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
12 * Licensed under the LGPL v2.1, code originally in uclibc
14 ****************************************************************************/
17 /* NOTE: This is the simple-minded O(len(s1) * len(s2)) worst-case approach. */
19 char *strstr(const char *s1
, const char *s2
)
21 register const char *s
= s1
;
22 register const char *p
= s2
;