freebsd-skq/lib/libc/string
Ed Maste 16150352f5 memmem(3): empty little string matches the beginning of the big string
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
2015-05-26 21:16:07 +00:00
..
bcmp.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
bcmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
bcopy.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
bcopy.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
bstring.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
bzero.3 Add MLINK for explicit_bzero(3) and bump .Dd date. 2014-10-07 04:59:11 +00:00
bzero.c
ffs.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
ffs.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
ffsl.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
ffsll.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
fls.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
flsl.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
flsll.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
index.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
Makefile.inc Remove duplicated code. 2014-10-16 22:04:07 +00:00
memccpy.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memccpy.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memchr.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memchr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memcmp.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memcmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memcpy.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memcpy.c
memmem.3 memmem(3): empty little string matches the beginning of the big string 2015-05-26 21:16:07 +00:00
memmem.c memmem(3): empty little string matches the beginning of the big string 2015-05-26 21:16:07 +00:00
memmove.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memmove.c
memrchr.c
memset.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
memset.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
stpcpy.c
stpncpy.c
strcasecmp.3 Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance. 2014-05-30 01:09:07 +00:00
strcasecmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcasestr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcat.3 libc man pages: Remove reference to non-existent FreeBSD Security 2014-03-07 15:35:54 +00:00
strcat.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strchr.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strchr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strchrnul.c Add strchrnul(), a GNU function similar to strchr(), except that it returns 2013-02-13 15:46:33 +00:00
strcmp.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcoll.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcoll.c Revert r227812 and r227808 per discussion 2011-12-02 15:41:09 +00:00
strcpy.3 libc man pages: Remove reference to non-existent FreeBSD Security 2014-03-07 15:35:54 +00:00
strcpy.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strcspn.c
strdup.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strdup.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strerror.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
strerror.c libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
string.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strlcat.c Make strlcpy/strlcat slightly easier to read. 2015-04-06 03:21:22 +00:00
strlcpy.3 Fix .Dd after r257646. 2013-11-05 21:47:00 +00:00
strlcpy.c Make strlcpy/strlcat slightly easier to read. 2015-04-06 03:21:22 +00:00
strlen.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strlen.c
strmode.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strmode.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strncat.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strncmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strncpy.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strndup.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strnlen.c
strnstr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strpbrk.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strpbrk.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strrchr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strsep.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strsep.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strsignal.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strspn.3 Various mdoc fixes and a few EOL whitespace removals. 2014-12-21 12:36:36 +00:00
strspn.c
strstr.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strstr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strtok.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
strtok.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strxfrm.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
strxfrm.c
swab.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
swab.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
Symbol.map Add explicit_bzero(3) and its kernel counterpart. 2014-10-07 04:54:11 +00:00
wcpcpy.c
wcpncpy.c
wcscasecmp.c
wcscat.c
wcschr.c
wcscmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcscoll.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcscoll.c
wcscpy.c
wcscspn.c
wcsdup.c
wcslcat.c
wcslcpy.c
wcslen.c
wcsncasecmp.c
wcsncat.c
wcsncmp.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcsncpy.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcsnlen.c
wcspbrk.c
wcsrchr.c
wcsspn.c
wcsstr.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcstok.3
wcstok.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcswidth.3
wcswidth.c Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcsxfrm.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wcsxfrm.c
wmemchr.3 Renumber clauses to reduce diffs to other versions 2013-05-28 20:57:40 +00:00
wmemchr.c
wmemcmp.c
wmemcpy.c
wmemmove.c
wmemset.c