aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>1999-09-08 08:20:11 +0000
committerJeff Law <law@gcc.gnu.org>1999-09-08 02:20:11 -0600
commit6659980655dad5ffe64708319990885588016fb1 (patch)
treef972a9d499ff995048b55c3d391e958877330886 /include/libiberty.h
parentb10647f1b2068be06900f34b0ca8286ae56927f2 (diff)
downloadgcc-6659980655dad5ffe64708319990885588016fb1.zip
gcc-6659980655dad5ffe64708319990885588016fb1.tar.gz
gcc-6659980655dad5ffe64708319990885588016fb1.tar.bz2
* libiberty.h (xmemdup): Add prototype for new function.
From-SVN: r29200
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index db3b6d9..0bcce671 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -149,6 +149,10 @@ extern PTR xcalloc PARAMS ((size_t, size_t));
extern char *xstrdup PARAMS ((const char *));
+/* Copy an existing memory buffer to a new memory buffer without fail. */
+
+extern PTR xmemdup PARAMS ((const PTR, size_t, size_t));
+
/* hex character manipulation routines */
#define _hex_array_size 256