From 92c90987dbf2b96c8e8dbe6af53b1352d15ca4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 20 Dec 2016 19:02:54 +0100 Subject: buffer: implement buffer_appendf to append formatted content --- buffer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'buffer.h') diff --git a/buffer.h b/buffer.h index b095572..6c6bc82 100644 --- a/buffer.h +++ b/buffer.h @@ -42,9 +42,10 @@ bool buffer_append0(Buffer*, const char *data); bool buffer_prepend(Buffer*, const void *data, size_t len); /* prepend NUL-terminated data */ bool buffer_prepend0(Buffer*, const char *data); - +/* set formatted buffer content, ensures NUL termination on success */ bool buffer_printf(Buffer*, const char *fmt, ...); -bool buffer_vprintf(Buffer*, const char *fmt, va_list); +/* append formatted buffer content, ensures NUL termination on success */ +bool buffer_appendf(Buffer*, const char *fmt, ...); /* return length of a buffer without trailing NUL byte */ size_t buffer_length0(Buffer*); /* return length of a buffer including possible NUL byte */ -- cgit v1.2.3