summaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 6fb29d21223..86fec2dd656 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -135,6 +135,11 @@ extern PTR xmalloc PARAMS ((size_t));
extern PTR xrealloc PARAMS ((PTR, size_t));
+/* Allocate memory without fail and set it to zero. This works like
+ xmalloc. */
+
+extern PTR xcalloc PARAMS ((size_t, size_t));
+
/* Copy a string into a memory buffer without fail. */
extern char *xstrdup PARAMS ((const char *));