aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 678d87ff..b5cd085f 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -72,6 +72,12 @@ int strbuf_soft_reset(strbuf* s);
char* strbuf_end(strbuf* s);
/*
+ * Reallocs dest to be the same size as src, and copies the contents
+ * of src into dest.
+ */
+int strbuf_realloc_copy(strbuf* dest, strbuf* src);
+
+/*
* Copies contents from src to dest, also allocating dest in the
* process. dest should not be initialized before this call.
*/