mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-30 15:54:12 +00:00
These functions are just like [v]asprintf(3), but simpler. They return the newly allocated memory, which allows us to use the [[gnu::malloc(free)]] attribute, which enhances static analysis. They also omit the length, which we don't care about at all. As a curiosity, Plan9 seems to provide this same API, under the name smprint(3). Link: <https://9fans.github.io/plan9port/man/man3/print.html> Signed-off-by: Alejandro Colomar <alx@kernel.org>