diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-11-13 16:33:50 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-11-13 16:33:50 +0000 |
commit | 67d0f6ab5e3c6fba25e59702f09f44694a0c968b (patch) | |
tree | 905133da309eac0354d5db68a46ad1b2aac24918 /include/libiberty.h | |
parent | df66b5660c1dc2f388b54d3d8d14951ead739edb (diff) | |
download | gcc-67d0f6ab5e3c6fba25e59702f09f44694a0c968b.zip gcc-67d0f6ab5e3c6fba25e59702f09f44694a0c968b.tar.gz gcc-67d0f6ab5e3c6fba25e59702f09f44694a0c968b.tar.bz2 |
* libiberty.h: Prototype xcalloc.
From-SVN: r23641
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 6fb29d2..86fec2d 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 *)); |