MCPcopy Index your code
hub / github.com/antirez/botlib / sdsfree

Function sdsfree

sds.c:165–168  ·  view source on GitHub ↗

Free an sds string. No operation is performed if 's' is NULL. */

Source from the content-addressed store, hash-verified

163
164/* Free an sds string. No operation is performed if 's' is NULL. */
165void sdsfree(sds s) {
166 if (s == NULL) return;
167 s_free((char*)s-sdsHdrSize(s[-1]));
168}
169
170/* Set the sds string length to the length as obtained with strlen(), so
171 * considering as content only up to the first null term character.

Callers 15

handleRequestFunction · 0.85
sqlGenericQueryFunction · 0.85
makeHTTPGETCallOptFunction · 0.85
makeGETBotRequestFunction · 0.85
botSendImageFunction · 0.85
botGetUsernameFunction · 0.85
botSendMessageAndGetInfoFunction · 0.85
botEditMessageTextFunction · 0.85
botGetFileFunction · 0.85
freeBotRequestFunction · 0.85
botProcessUpdatesFunction · 0.85
readApiKeyFromFileFunction · 0.85

Calls 1

sdsHdrSizeFunction · 0.85

Tested by

no test coverage detected