b1a7b22e6525f27afb35fc0ff439c20d25bb9fc4
[pspp] / doc / functions / memmem.texi
1 @node memmem
2 @section @code{memmem}
3 @findex memmem
4
5 Unspecified by POSIX, but comparable to @code{strstr}.
6
7 Gnulib module: memmem or memmem-simple
8
9 Portability problems fixed by either Gnulib module @code{memmem-simple}
10 or @code{memmem}:
11 @itemize
12 @item
13 This function is missing on some platforms:
14 Mingw, OpenBSD 4.0
15
16 @item
17 This function has reversed arguments on some older platforms:
18 Linux libc 5.0.9
19 @end itemize
20
21 Portability problems fixed by Gnulib module @code{memmem}:
22 @itemize
23 @item
24 This function returns incorrect values in some cases, such as when
25 given an empty needle:
26 glibc <= 2.0, cygwin 1.5.x
27
28 @item
29 This function has quadratic instead of linear complexity on some
30 platforms:
31 glibc <= 2.6.1, cygwin 1.5.x
32 @end itemize
33
34 Portability problems not fixed by Gnulib:
35 @itemize
36 @end itemize