source: trunk/binutils/libiberty/calloc.c@ 2446

Last change on this file since 2446 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 807 bytes
Line 
1/* calloc -- allocate memory which has been initialized to zero.
2 This function is in the public domain. */
3
4/*
5
6@deftypefn Supplemental void* calloc (size_t @var{nelem}, size_t @var{elsize})
7
8Uses @code{malloc} to allocate storage for @var{nelem} objects of
9@var{elsize} bytes each, then zeros the memory.
10
11@end deftypefn
12
13*/
14
15#include "ansidecl.h"
16#ifdef ANSI_PROTOTYPES
17#include <stddef.h>
18#else
19#define size_t unsigned long