summaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2005-03-25 04:57:08 +0000
committerDJ Delorie <dj@delorie.com>2005-03-25 04:57:08 +0000
commit02dcea42936199f309076b67f3e99a7d69702acb (patch)
tree4b363761f0a5e1ce3248ea3a1731b938a616de98 /include/libiberty.h
parent63687a9d4fce0d8e64862cad1377126b93b9d5b7 (diff)
downloadgdb-02dcea42936199f309076b67f3e99a7d69702acb.tar.gz
merge from gcc
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 d2a8a0b9ef7..49a2fb6fd52 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -255,6 +255,10 @@ extern PTR xcalloc PARAMS ((size_t, size_t)) ATTRIBUTE_MALLOC;
extern char *xstrdup PARAMS ((const char *)) ATTRIBUTE_MALLOC;
+/* Copy at most N characters from string into a buffer without fail. */
+
+extern char *xstrndup PARAMS ((const char *, size_t)) ATTRIBUTE_MALLOC;
+
/* Copy an existing memory buffer to a new memory buffer without fail. */
extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC;