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

Function sdsfreesplitres

sds.c:871–876  ·  view source on GitHub ↗

Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */

Source from the content-addressed store, hash-verified

869
870/* Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
871void sdsfreesplitres(sds *tokens, int count) {
872 if (!tokens) return;
873 while(count--)
874 sdsfree(tokens[count]);
875 s_free(tokens);
876}
877
878/* Append to the sds string "s" an escaped string representation where
879 * all the non-printable characters (tested with isprint()) are turned into

Callers 1

freeBotRequestFunction · 0.85

Calls 1

sdsfreeFunction · 0.85

Tested by

no test coverage detected