lib: implement strnstr()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 3 Feb 2025 09:12:00 +0000 (10:12 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 12 Feb 2025 18:37:12 +0000 (12:37 -0600)
commit7c7361b98d6eadcbcde556763b6d40a686f4bd3d
tree6285735f77c2e1a5ee51b0b60efb868070cb5a33
parent10917df17f247d3b0a7f5ca992b97bd2728ef09e
lib: implement strnstr()

Implement library function strnstr().
Implement strstr() using strnstr().
Sort the includes.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
[jf: replace <stdint.h> by <limits.h>, folded from next patch]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
include/linux/string.h
lib/string.c