Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
| 869 | |
| 870 | /* Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */ |
| 871 | void 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 |
no test coverage detected