* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
[deliverable/binutils-gdb.git] / libiberty / calloc.c
index c8c0a78a7a131a2e3d2f052e7d2107a455397c2a..50736823077c017e799f596873668629c932659c 100644 (file)
@@ -1,6 +1,18 @@
-#include "ansidecl.h"
-#include "libiberty.h"
+/* 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"
 #ifdef ANSI_PROTOTYPES
 #include <stddef.h>
 #else
@@ -9,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)
This page took 0.027863 seconds and 4 git commands to generate.