summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-15 03:55:02 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-15 03:55:02 +0000
commit2fb08fe46c6de08fa199d6db89991a2f8399a55b (patch)
treeb4affbb75ec3ee93231b1dd7cf85060f3c651b9d
parent7fa5d224d4469de9ff69f41a245ada9b329a2840 (diff)
downloadtor-2fb08fe46c6de08fa199d6db89991a2f8399a55b.tar.gz
tor-2fb08fe46c6de08fa199d6db89991a2f8399a55b.zip
add documentation for smartlist_join_strings
svn:r2524
-rw-r--r--src/common/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index f99e29df2e..613998eb8e 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -609,6 +609,11 @@ int smartlist_split_string(smartlist_t *sl, const char *str, const char *sep,
return n;
}
+/** Allocate and return a new string containing the concatenation of
+ * the elements of <b>sl</b>, in order, separated by <b>join</b>. If
+ * <b>terminate</b> is true, also terminate the string with <b>join</b>.
+ * Requires that every element of <b>sl</b> is NUL-terminated string.
+ */
char *smartlist_join_strings(smartlist_t *sl, const char *join, int terminate)
{
int i;