diff options
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 | ||
117 | static 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 | |||
117 | static inline void strbuf_ensure_null(strbuf_t *s) | 123 | static inline void strbuf_ensure_null(strbuf_t *s) |
118 | { | 124 | { |
119 | s->buf[s->length] = 0; | 125 | s->buf[s->length] = 0; |