about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/utils.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index deb9aa9b2..968194be1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2018-10-14  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* unposted: Src/utils.c: internals: Document sepjoin().
+
 	* 43685: Functions/Misc/add-zle-hook-widget: Support running
 	under NO_UNSET ('set -u').
 
diff --git a/Src/utils.c b/Src/utils.c
index 5a9fbdd32..914e30c5c 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3820,6 +3820,14 @@ wordcount(char *s, char *sep, int mul)
     return r;
 }
 
+/*
+ * 's' is a NULL-terminated array of strings.
+ * 'sep' is a string.
+ *
+ * Return a string consisting of the elements of 's' joined by 'sep',
+ * allocated on the heap iff 'heap'.
+ */
+
 /**/
 mod_export char *
 sepjoin(char **s, char *sep, int heap)