aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index 41c2532..1bb20d7 100644
--- a/buffer.h
+++ b/buffer.h
@@ -57,5 +57,8 @@ size_t buffer_capacity(Buffer*);
const char *buffer_content0(Buffer*);
/* pointer to buffer data, might be NULL if empty, might not be NUL terminated */
const char *buffer_content(Buffer*);
+/* steal underlying buffer data, caller is responsible to free(3) it,
+ * similar to move semantics in some programming languages */
+char *buffer_move(Buffer*);
#endif