tools/nolibc: add missing memchr() to string.h

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@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
This commit is contained in:
Willy Tarreau 2025-11-02 11:46:10 +01:00 • committed by Thomas Weißschuh
commit db75042e93
2 changed files with 17 additions and 0 deletions