nuttx-apps/testing/libc/arch_libc
Justin Hammond f45a02c938 testing/libc/arch_libc: Test memccpy and stpncpy.
Neither is covered here, and both are overridable, so a machine or libc
implementation of either goes in unmeasured and unchecked.

memccpy is checked with the search character present, where the copy
stops just past it and the result points there, and absent, where the
whole length is copied and the result is NULL.  stpncpy is checked
against every capacity from zero to four past the length, for the
content, the zero padding beyond the terminator, and the returned
pointer, which is the terminator when the string fits and one past the
end when it does not.

Both sweep all sixty four source and destination alignment pairs, and
both are added to the benchmark, which now covers nineteen functions.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Justin Hammond <justin@dynam.ac>
2026-08-18 15:27:07 -03:00
..
arch_libc_bench.c testing/libc/arch_libc: Test memccpy and stpncpy. 2026-08-18 15:27:07 -03:00
arch_libc_test_main.c testing/libc/arch_libc: Test memccpy and stpncpy. 2026-08-18 15:27:07 -03:00
CMakeLists.txt testing/libc/arch_libc: Add a throughput benchmark. 2026-08-18 15:27:07 -03:00
Kconfig testing/libc/arch_libc: Test memccpy and stpncpy. 2026-08-18 15:27:07 -03:00
Make.defs apps/testing:move arch_libc, fmemopen, scanftest folders to the new lib folder 2025-01-22 17:18:30 +08:00
Makefile testing/libc/arch_libc: Add a throughput benchmark. 2026-08-18 15:27:07 -03:00