1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

unposted: internals: Document sepjoin().

This commit is contained in:
Daniel Shahaf 2018-10-14 14:02:12 +00:00
parent f6adb79ba5
commit bf9da44931
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2018-10-14 Daniel Shahaf <d.s@daniel.shahaf.name> 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 * 43685: Functions/Misc/add-zle-hook-widget: Support running
under NO_UNSET ('set -u'). under NO_UNSET ('set -u').

View file

@ -3820,6 +3820,14 @@ wordcount(char *s, char *sep, int mul)
return r; 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 * mod_export char *
sepjoin(char **s, char *sep, int heap) sepjoin(char **s, char *sep, int heap)