add strnstr(9) string search within character limit
authorjsg <jsg@openbsd.org>
Thu, 21 Dec 2023 02:57:14 +0000 (02:57 +0000)
committerjsg <jsg@openbsd.org>
Thu, 21 Dec 2023 02:57:14 +0000 (02:57 +0000)
commite86eac0aa26ae70ca99c10330901a05f18155e9a
tree32403c8e15813a5f13c6ad6bb71bd82e1fe2cf6c
parentba5cb4516c755a8f03b92e295df3eefdc841daf2
add strnstr(9) string search within character limit

From Mike Barcroft in FreeBSD.  Added to FreeBSD in 2001, Linux in 2010.
Used in amdgpu.

ok deraadt@
share/man/man9/Makefile
share/man/man9/strnstr.9 [new file with mode: 0644]
sys/conf/files
sys/lib/libkern/libkern.h
sys/lib/libkern/strnstr.c [new file with mode: 0644]