diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-15 03:55:02 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-15 03:55:02 +0000 |
commit | 2fb08fe46c6de08fa199d6db89991a2f8399a55b (patch) | |
tree | b4affbb75ec3ee93231b1dd7cf85060f3c651b9d /src/common | |
parent | 7fa5d224d4469de9ff69f41a245ada9b329a2840 (diff) | |
download | tor-2fb08fe46c6de08fa199d6db89991a2f8399a55b.tar tor-2fb08fe46c6de08fa199d6db89991a2f8399a55b.tar.gz |
add documentation for smartlist_join_strings
svn:r2524
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index f99e29df2..613998eb8 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; |