summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/memmem.c
Commit message (Collapse)AuthorAgeFilesLines
* memmem(3): empty little string matches the beginning of the big stringemaste2015-05-261-3/+3
| | | | | | | | | | | | This function originated in glibc, and this matches their behaviour (and NetBSD, OpenBSD, and musl). An empty big string (arg "l") is handled by the existing l_len < s_len test. Reviewed by: bapt, ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2657
* - ANSIfy function definitionsdanger2009-02-031-3/+1
| | | | | | - use nul when we are looking for a terminating character where appropriate Approved by: imp
* Add the function memmem(3) as found in glibc and others.andre2005-08-251-0/+67
It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
OpenPOWER on IntegriCloud