MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / sdsnew

Function sdsnew

src/util/sds/sds.c:156–159  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

154
155/* Create a new sds string starting from a null terminated C string. */
156sds sdsnew(const char *init) {
157 size_t initlen = (init == NULL) ? 0 : strlen(init);
158 return sdsnewlen(init, initlen);
159}
160
161/* Duplicate an sds string. */
162sds sdsdup(const sds s) {

Callers 1

sdsTestFunction · 0.85

Calls 1

sdsnewlenFunction · 0.85

Tested by

no test coverage detected