projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
libiberty
/
calloc.c
diff --git
a/libiberty/calloc.c
b/libiberty/calloc.c
index 334b18db86a41d303e013e5380028942e663752d..f4bd27b1cd2a460c89c1e5ba2e3e94190db98c85 100644
(file)
--- a/
libiberty/calloc.c
+++ b/
libiberty/calloc.c
@@
-1,21
+1,26
@@
/* calloc -- allocate memory which has been initialized to zero.
This function is in the public domain. */
/* 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 "ansidecl.h"
-#include "libiberty.h"
-
-#ifdef ANSI_PROTOTYPES
#include <stddef.h>
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
/* For systems with larger pointers than ints, this must be declared. */
/* For systems with larger pointers than ints, this must be declared. */
-PTR malloc PARAMS ((size_t));
+PTR malloc (size_t);
+void bzero (PTR, size_t);
PTR
PTR
-calloc (nelem, elsize)
- size_t nelem, elsize;
+calloc (size_t nelem, size_t elsize)
{
register PTR ptr;
{
register PTR ptr;
This page took
0.041468 seconds
and
4
git commands to generate.