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 85f3261..7829c63 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -114,6 +114,12 @@ static inline void strbuf_append_mem(strbuf_t *s, const char *c, int len)
114 s->length += len; 114 s->length += len;
115} 115}
116 116
117static inline void strbuf_append_mem_unsafe(strbuf_t *s, const char *c, int len)
118{
119 memcpy(s->buf + s->length, c, len);
120 s->length += len;
121}
122
117static inline void strbuf_ensure_null(strbuf_t *s) 123static inline void strbuf_ensure_null(strbuf_t *s)
118{ 124{
119 s->buf[s->length] = 0; 125 s->buf[s->length] = 0;