memmem.3 (6050c8fe05cff5f6b5d0191db51223f86b7c04f0) | memmem.3 (ca5137742a61da31630553dcaff5863662b959a3) |
---|---|
1.\" Copyright (c) 2005 Pascal Gloor <pascal.gloor@spale.com> 2.\" 3.\" Redistribution and use in source and binary forms, with or without 4.\" modification, are permitted provided that the following conditions 5.\" are met: 6.\" 1. Redistributions of source code must retain the above copyright 7.\" notice, this list of conditions and the following disclaimer. 8.\" 2. Redistributions in binary form must reproduce the above copyright --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" Copyright (c) 2005 Pascal Gloor <pascal.gloor@spale.com> 2.\" 3.\" Redistribution and use in source and binary forms, with or without 4.\" modification, are permitted provided that the following conditions 5.\" are met: 6.\" 1. Redistributions of source code must retain the above copyright 7.\" notice, this list of conditions and the following disclaimer. 8.\" 2. Redistributions in binary form must reproduce the above copyright --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27\" $FreeBSD$ | 27.\" $FreeBSD$ |
28.\" 29.Dd August 24, 2005 30.Dt MEMMEM 3 31.Os 32.Sh NAME 33.Nm memmem | 28.\" 29.Dd August 24, 2005 30.Dt MEMMEM 3 31.Os 32.Sh NAME 33.Nm memmem |
34.Nd locate a byte substring in a byte string | 34.Nd "locate a byte substring in a byte string" |
35.Sh LIBRARY 36.Lb libc 37.Sh SYNOPSIS 38.In string.h | 35.Sh LIBRARY 36.Lb libc 37.Sh SYNOPSIS 38.In string.h |
39.Ft void * 40.Fn memmem "const char *big" "size_t big_len" \ 41"const char *little" "size_t little_len" | 39.Ft "void *" 40.Fo memmem 41.Fa "const char *big" "size_t big_len" 42.Fa "const char *little" "size_t little_len" 43.Fc |
42.Sh DESCRIPTION 43The 44.Fn memmem 45function 46locates the first occurrence of the byte string 47.Fa little 48in the byte string 49.Fa big . --- 22 unchanged lines hidden (view full) --- 72.Sh CONFORMING TO 73.Fn memmem 74is a GNU extension. 75.Sh HISTORY 76The 77.Fn memmem 78function first appeared in 79.Fx 6.0 . | 44.Sh DESCRIPTION 45The 46.Fn memmem 47function 48locates the first occurrence of the byte string 49.Fa little 50in the byte string 51.Fa big . --- 22 unchanged lines hidden (view full) --- 74.Sh CONFORMING TO 75.Fn memmem 76is a GNU extension. 77.Sh HISTORY 78The 79.Fn memmem 80function first appeared in 81.Fx 6.0 . |
80.Sh AUTHOR 81Pascal Gloor <pascal.gloor@spale.com> | 82.Sh AUTHORS 83.An Pascal Gloor Aq pascal.gloor@spale.com |
82.Sh BUGS 83This function was broken in Linux libc up to and including version 5.0.9 84and in GNU libc prior to version 2.1. | 84.Sh BUGS 85This function was broken in Linux libc up to and including version 5.0.9 86and in GNU libc prior to version 2.1. |