sds.c: new function sdsjoin() to join strings.

This commit is contained in:
antirez
2013-07-04 18:30:59 +02:00
parent 1135e9faa2
commit 585b0a61ce
2 changed files with 14 additions and 0 deletions

View File

@ -89,6 +89,7 @@ sds sdsfromlonglong(long long value);
sds sdscatrepr(sds s, const char *p, size_t len);
sds *sdssplitargs(const char *line, int *argc);
sds sdsmapchars(sds s, const char *from, const char *to, size_t setlen);
sds sdsjoin(char **argv, int argc, char *sep);
/* Low level functions exposed to the user API */
sds sdsMakeRoomFor(sds s, size_t addlen);