aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index fcdad47..cef75f3 100644
--- a/buffer.h
+++ b/buffer.h
@@ -42,5 +42,7 @@ bool buffer_prepend0(Buffer*, const char *data);
size_t buffer_length0(Buffer*);
/* return length of a buffer including possible NUL byte */
size_t buffer_length(Buffer*);
+/* pointer to buffer data, might be NULL if empty, might not be NUL terminated */
+const char *buffer_content(Buffer*);
#endif