Back to index

cell-binutils  2.17cvs20070401
calloc.c File Reference
#include "ansidecl.h"
#include <stddef.h>

Go to the source code of this file.


PTR malloc (size_t)
void bzero (PTR, size_t)
PTR calloc (size_t nelem, size_t elsize)

Function Documentation

void bzero ( PTR  ,
PTR calloc ( size_t  nelem,
size_t  elsize 

Definition at line 23 of file calloc.c.

  register PTR ptr;  

  if (nelem == 0 || elsize == 0)
    nelem = elsize = 1;
  ptr = malloc (nelem * elsize);
  if (ptr) bzero (ptr, nelem * elsize);
  return ptr;

Here is the call graph for this function:

Here is the caller graph for this function:

PTR malloc ( size_t  )