]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: add support for [v]sscanf()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Feb 2025 20:27:12 +0000 (21:27 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 26 Feb 2025 21:13:48 +0000 (22:13 +0100)
commit22edf1f8d4dc4e506efa83a3647c9f00d1eadd77
treea1156fd35fca669655ac0e8b4b4e311c6902bda6
parent9c812b01f13d37410ea103e00bc47e5e0f6d2bad
tools/nolibc: add support for [v]sscanf()

These functions are used often, also in selftests.
sscanf() itself is also used by kselftest.h itself.

The implementation is limited and only supports numeric arguments.

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250209-nolibc-scanf-v2-1-c29dea32f1cd@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stdio.h
tools/testing/selftests/nolibc/nolibc-test.c