diff options
Diffstat (limited to 'dynstr.h')
-rw-r--r-- | dynstr.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -116,10 +116,14 @@ bool dynstr_is_empty(Dynstr *dynstr); /* Create a new string, copying its contents from an existing one. */ Dynstr *dynstr_substr(Dynstr *dynstr, size_t offset, size_t size); +/* Create a new string by catenating two existing ones. Return NULL on + * failure. */ +Dynstr *dynstr_cat(Dynstr *dynstr1, Dynstr *dynstr2); + /* Create a new string by catenating zero or more existing ones. The * argument list has zero or more pointers to dynamic strings, and * then a NULL pointer. */ -Dynstr *dynstr_cat(Dynstr *dynstr, ...); +Dynstr *dynstr_cat_many(Dynstr *dynstr, ...); /* Return value of byte at a given offset. The value is non-negative. If * the offset is past the end of the string, -1 is returned. */ |