diff options
Diffstat (limited to 'buffer.h')
| -rw-r--r-- | buffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 */ |
