X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/d0b2a9b2234afe82d6ed42a8c45f8221ede25d8f..503d87a818ffd11c275bba6479bcd5b4a855e8ca:/src/sds.c?ds=inline diff --git a/src/sds.c b/src/sds.c index c3a0ccb9..b6c2aaf3 100644 --- a/src/sds.c +++ b/src/sds.c @@ -196,6 +196,10 @@ sds sdscat(sds s, char *t) { return sdscatlen(s, t, strlen(t)); } +sds sdscatsds(sds s, sds t) { + return sdscatlen(s, t, sdslen(t)); +} + sds sdscpylen(sds s, char *t, size_t len) { struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr))); size_t totlen = sh->free+sh->len;