aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-25 04:57:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-25 04:57:08 +0000
commit0fad4bdb8e54f631e012ec382b6e337e7c897502 (patch)
tree09c164d706811e70ecc00f2008a702e5ce291396 /include/libiberty.h
parent51e32d644ad69408eacefacd21e015a6c9c519c2 (diff)
downloadgdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.zip
gdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.tar.gz
gdb-0fad4bdb8e54f631e012ec382b6e337e7c897502.tar.bz2
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 d2a8a0b..49a2fb6 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;