MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sdsnew

Function sdsnew

app/redis-6.2.6/src/sds.c:183–186  ·  view source on GitHub ↗

Create a new sds string starting from a null terminated C string. */

Source from the content-addressed store, hash-verified

181
182/* Create a new sds string starting from a null terminated C string. */
183sds sdsnew(const char *init) {
184 size_t initlen = (init == NULL) ? 0 : strlen(init);
185 return sdsnewlen(init, initlen);
186}
187
188/* Duplicate an sds string. */
189sds sdsdup(const sds s) {

Calls 1

sdsnewlenFunction · 0.85

Tested by

no test coverage detected