mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-29 06:51:03 +02:00
unposted: internals: Document sepjoin().
This commit is contained in:
parent
f6adb79ba5
commit
bf9da44931
2 changed files with 10 additions and 0 deletions
|
@ -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').
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue