diff options
Diffstat (limited to 'lib/dynamic-string.c')
-rw-r--r-- | lib/dynamic-string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index 1df85ac31..2c2effbe8 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -95,6 +95,12 @@ ds_put_char_multiple(struct ds *ds, char c, size_t n) } void +ds_put_buffer(struct ds *ds, const char *s, size_t n) +{ + memcpy(ds_put_uninit(ds, n), s, n); +} + +void ds_put_cstr(struct ds *ds, const char *s) { size_t s_len = strlen(s); |