buf: add buf_add_fmt()

This commit is contained in:
Johan Malm 2024-08-19 21:22:50 +01:00
parent 107d84cef9
commit 6cd24ae14f
3 changed files with 56 additions and 0 deletions

View file

@ -43,6 +43,13 @@ void buf_expand_tilde(struct buf *s);
*/
void buf_expand_shell_variables(struct buf *s);
/**
* buf_add_fmt - add format string to C string buffer
* @s: buffer
* @fmt: format string to be added
*/
void buf_add_fmt(struct buf *s, const char *fmt, ...);
/**
* buf_add - add data to C string buffer
* @s: buffer