mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Added sdscatsds() to sds.c/h
This commit is contained in:
parent
7e14a20801
commit
08a879af6e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user