summaryrefslogtreecommitdiff
path: root/dynstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'dynstr.h')
-rw-r--r--dynstr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/dynstr.h b/dynstr.h
index 401dc85..5a6f7ad 100644
--- a/dynstr.h
+++ b/dynstr.h
@@ -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. */