bstr: add bstr_xappend0

This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2024-11-27 15:37:42 +01:00
1 parent b9e6030053
commit f7e2a8c1cc
4 files changed
+11 -9

No files matched your search

+5
View File
@@ -150,6 +150,11 @@ struct bstr bstr_strip_linebreaks(struct bstr str);
*/
void bstr_xappend(void *talloc_ctx, bstr *s, bstr append);
static inline void bstr_xappend0(void *talloc_ctx, bstr *s, const char *append)
{
return bstr_xappend(talloc_ctx, s, bstr0(append));
}
/**
* @brief Append a formatted string to the existing bstr.
*