MCPcopy Create free account
hub / github.com/antirez/botlib / sdsnew

Function sdsnew

sds.c:154–157  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 7

makeHTTPGETCallOptFunction · 0.85
makeGETBotRequestFunction · 0.85
botGetUsernameFunction · 0.85
botProcessUpdatesFunction · 0.85
readApiKeyFromFileFunction · 0.85
startBotFunction · 0.85
sdsTestFunction · 0.85

Calls 1

sdsnewlenFunction · 0.85

Tested by

no test coverage detected