abuf: Add a way to printf() into a buffer
authorSimon Glass <sjg@chromium.org>
Fri, 2 May 2025 14:46:04 +0000 (08:46 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 30 May 2025 08:49:31 +0000 (09:49 +0100)
commit4f4b9477f4476cd86ffd4219111065d610c5237a
tree3daecd9ea2c917e972afba0969d30d79f0bbd35d
parentd58cebbbc7617fbc45e604c883e8501a58d25e62
abuf: Add a way to printf() into a buffer

It is useful to format a string into a buffer, with the sizing handled
automatically. Add a function for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/abuf.h
lib/abuf.c
test/lib/abuf.c