aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-21 15:05:49 +0100
committerRon Yorston <rmy@pobox.com>2023-04-21 15:05:49 +0100
commitff8242f51aac4e1b358eac833d6b384ebe1a1116 (patch)
treed97eb54db89b5a24eed8f03c8fc307c77f8eee95 /miscutils
parent9ce85210e61e6c75adfc0ac0f54643cfee1353be (diff)
downloadbusybox-w32-ff8242f51aac4e1b358eac833d6b384ebe1a1116.tar.gz
busybox-w32-ff8242f51aac4e1b358eac833d6b384ebe1a1116.tar.bz2
busybox-w32-ff8242f51aac4e1b358eac833d6b384ebe1a1116.zip
win32: export xappendword()
The function xappendword() in make.c may have other uses. Export it.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/make.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/miscutils/make.c b/miscutils/make.c
index eddc07126..07d824752 100644
--- a/miscutils/make.c
+++ b/miscutils/make.c
@@ -333,19 +333,6 @@ auto_concat(const char *s1, const char *s2)
333 return auto_string(xasprintf("%s%s", s1, s2)); 333 return auto_string(xasprintf("%s%s", s1, s2));
334} 334}
335 335
336/*
337 * Append a word to a space-separated string of words. The first
338 * call should use a NULL pointer for str, subsequent calls should
339 * pass an allocated string which will be freed.
340 */
341static char *
342xappendword(const char *str, const char *word)
343{
344 char *newstr = str ? xasprintf("%s %s", str, word) : xstrdup(word);
345 free((void *)str);
346 return newstr;
347}
348
349static unsigned int 336static unsigned int
350getbucket(const char *name) 337getbucket(const char *name)
351{ 338{