diff options
author | DJ Delorie <dj@delorie.com> | 2001-09-24 23:37:52 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2001-09-24 23:37:52 +0000 |
commit | 96c0df56b29a4eeac6f225dd0ea5a051e2d68a2c (patch) | |
tree | 9e77a13d4e3273a159b3149ffdfeca009fb21825 /include | |
parent | df4d069373b8ff29236f83d2c8af2777e20a8c8b (diff) | |
download | binutils-redhat-96c0df56b29a4eeac6f225dd0ea5a051e2d68a2c.tar.gz |
merge from gcc
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 157dbff4db..99bd932027 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h (reconcat): New function. + 2001-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * libiberty.h (concat, concat_length, concat_copy, concat_copy2, diff --git a/include/libiberty.h b/include/libiberty.h index a54e3adf05..315d3106c4 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. */ |