1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 16:01:18 +01:00
RIOT/tests/sys/snprintf/README.md
Marian Buschsieweke 42dacd7c9d
tests/sys/snprintf: Test format specifiers
This adds a simple test applications that runs snprintf on standard
format specifiers and compares the output with the expected output.

The assumption is that internally every stdio implementation uses the
same formatting code for each member of the printf functions family,
so testing snprintf only is sufficient.
2025-04-24 11:46:09 +02:00

7 lines
266 B
Markdown

# snprintf
This test aims to test if the stdio implementations correctly implements
standard format specifiers. Instead of relying on the transport of stdout to
be fast and reliable, it will use snprintf to format in-memory and compare
in the app with correctness.