diff options
author | DJ Delorie <dj@redhat.com> | 2001-09-24 23:37:30 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2001-09-24 23:37:30 +0000 |
commit | 54e909976c1f6b06bbc556c1fc26f25b15c1a55c (patch) | |
tree | 190dcfe9e89f72b809a6bb750160582703f7d0c6 /include/libiberty.h | |
parent | 3263838430ad3ccf5db934b37c645a83238ea89a (diff) | |
download | cygnal-54e909976c1f6b06bbc556c1fc26f25b15c1a55c.tar.gz cygnal-54e909976c1f6b06bbc556c1fc26f25b15c1a55c.tar.bz2 cygnal-54e909976c1f6b06bbc556c1fc26f25b15c1a55c.zip |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index a54e3adf0..315d3106c 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -91,6 +91,15 @@ extern const char *lbasename PARAMS ((const char *)); extern char *concat PARAMS ((const char *, ...)) ATTRIBUTE_MALLOC; +/* Concatenate an arbitrary number of strings. You must pass NULL as + the last argument of this function, to terminate the list of + strings. Allocates memory using xmalloc. The first argument is + not one of the strings to be concatenated, but if not NULL is a + pointer to be freed after the new string is created, similar to the + way xrealloc works. */ + +extern char *reconcat PARAMS ((char *, const char *, ...)) ATTRIBUTE_MALLOC; + /* Determine the length of concatenating an arbitrary number of strings. You must pass NULL as the last argument of this function, to terminate the list of strings. */ |