summaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-03 18:28:00 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-03 18:28:00 +0000
commit11de62aa6059d15837431c13ab38e32a84394c0f (patch)
treec8778600987440a006a1a481dd47276a653f285b /src/common/container.h
parent11979dc1f5fae74df8fba8c339f0ac5ee4c52796 (diff)
downloadtor-11de62aa6059d15837431c13ab38e32a84394c0f.tar.gz
tor-11de62aa6059d15837431c13ab38e32a84394c0f.zip
Add a slightly trickier string-join interface for making NUL-terminated string messages
svn:r2659
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/container.h b/src/common/container.h
index 8f8a89f741..8be9edcac4 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -32,7 +32,10 @@ int smartlist_len(const smartlist_t *sl);
#define SPLIT_IGNORE_BLANK 0x02
int smartlist_split_string(smartlist_t *sl, const char *str, const char *sep,
int flags, int max);
-char *smartlist_join_strings(smartlist_t *sl, const char *join, int terminate);
+char *smartlist_join_strings(smartlist_t *sl, const char *join, int terminate,
+ size_t *len_out);
+char *smartlist_join_strings2(smartlist_t *sl, const char *join,
+ size_t join_len, int terminate, size_t *len_out);
#define SMARTLIST_FOREACH(sl, type, var, cmd) \
do { \