aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-09-24 23:37:52 +0000
committerDJ Delorie <dj@redhat.com>2001-09-24 23:37:52 +0000
commit99ee3a8f13fc032cce1b964cdbc37a567a944428 (patch)
tree5d45bddd294f7179dab19c01ac180edd28acbd95 /include/libiberty.h
parent85c774585e45889b3ce15d370b374fbadc878e54 (diff)
downloadgdb-99ee3a8f13fc032cce1b964cdbc37a567a944428.zip
gdb-99ee3a8f13fc032cce1b964cdbc37a567a944428.tar.gz
gdb-99ee3a8f13fc032cce1b964cdbc37a567a944428.tar.bz2
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index a54e3ad..315d310 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. */