diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-13 16:33:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-13 16:33:50 +0000 |
commit | 28e7433da246f2a1bcf2f555bac47fb7106662de (patch) | |
tree | 905133da309eac0354d5db68a46ad1b2aac24918 /include | |
parent | 0276827277a48d5bd4c9962b74fc0108fabdee61 (diff) | |
download | gcc-28e7433da246f2a1bcf2f555bac47fb7106662de.tar.gz |
* libiberty.h: Prototype xcalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 3b87813ef09..8d0093310fe 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +Fri Nov 13 19:19:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * libiberty.h: Prototype xcalloc. + Sun Nov 8 17:42:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * ansidecl.h: Wrap problematic macros with !IN_GCC. 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 *)); |