HomeFreeBSD

MFC r283584:

Description

MFC r283584:

Relnotes: yes

r283584 (by emaste):

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.

Details

Provenance
ngieAuthored on
Parents
rS313479: MFC r279154,r279397:
Branches
Unknown
Tags
Unknown