]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/buffer: introduce ul_buffer_get_string()
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 13 Jun 2024 09:39:34 +0000 (11:39 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 13 Jun 2024 09:45:55 +0000 (11:45 +0200)
commit49e177d627f80640aac81522090cbdc151204c2d
tree9d6b42f4d702a4212bd1121eb3d202d255cc3de8
parent84e33a138dc9faf2b1b154df5eaed910aa236eeb
lib/buffer: introduce ul_buffer_get_string()

Some users need a zero-byte-terminated string.
As the buffer internally already maintains a zero-termination, add a
helper function that exposes this to users.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/buffer.h
lib/buffer.c