aboutsummaryrefslogtreecommitdiff
path: root/libiberty/calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/calloc.c')
-rw-r--r--libiberty/calloc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libiberty/calloc.c b/libiberty/calloc.c
index 334b18d..b342f6c 100644
--- a/libiberty/calloc.c
+++ b/libiberty/calloc.c
@@ -1,5 +1,16 @@
/* 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"