Glibc finally accepted the memmem speedup code, bugzilla #5514.
[gnulib.git] / doc / posix-functions / strstr.texi
1 @node strstr
2 @section @code{strstr}
3 @findex strstr
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/strstr.html}
6
7 Gnulib module: strstr
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function has quadratic instead of linear worst-case complexity on some
13 platforms:
14 glibc 2.8, MacOS X 10.3, FreeBSD 6.2, NetBSD 3.0, OpenBSD 4.0, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw.
15 @end itemize
16
17 Portability problems not fixed by Gnulib:
18 @itemize
19 @item
20 This function cannot work correctly on character strings in most multibyte
21 locales.  Gnulib provides an alternative function @code{mbsstr} that works
22 on character strings in all locales.
23 @end itemize