Re: [PATCH v2 3/4] tools/nolibc: add missing memchr() to string.h
From: Thomas Weißschuh
Date: Sun Nov 02 2025 - 06:10:16 EST
On 2025-11-02 11:46:10+0100, Willy Tarreau wrote:
> Surprisingly we forgot to add this common one. It was added with a
> per-arch guard allowing to later implement it in arch-specific asm
> code like was done for a few other ones.
>
> The test verifies that we don't search past the indicated length.
>
> Signed-off-by: Willy Tarreau <w@xxxxxx>
> ---
> tools/include/nolibc/string.h | 15 +++++++++++++++
> tools/testing/selftests/nolibc/nolibc-test.c | 2 ++
> 2 files changed, 17 insertions(+)
Applied.