Catch a bug in the msp430 disassembler where an add instruction was confused
[binutils-gdb.git] / libiberty / calloc.c
index 334b18db86a41d303e013e5380028942e663752d..50736823077c017e799f596873668629c932659c 100644 (file)
@@ -1,9 +1,18 @@
 /* calloc -- allocate memory which has been initialized to zero.
    This function is in the public domain. */
+
+/*
+
+@deftypefn Supplemental void* calloc (size_t @var{nelem}, size_t @var{elsize})
+
+Uses @code{malloc} to allocate storage for @var{nelem} objects of
+@var{elsize} bytes each, then zeros the memory.
+
+@end deftypefn
+
+*/
  
 #include "ansidecl.h"
-#include "libiberty.h"
 #ifdef ANSI_PROTOTYPES
 #include <stddef.h>
 #else
@@ -12,6 +21,7 @@
 
 /* For systems with larger pointers than ints, this must be declared.  */
 PTR malloc PARAMS ((size_t));
+void bzero PARAMS ((PTR, size_t));
 
 PTR
 calloc (nelem, elsize)