Sun Java System Calendar Server 6 2005Q4 Developer's Guide

Method: Calloc

Purpose

Allocates, and initializes to zero, memory for a number of objects.

Syntax

void* Calloc (PRUint32 aSize, PPRUint32 aNum)=0;

Parameters

The method has the following two parameters:

aSize

The size in bytes of each object. 

nNum

The number of objects. 

Returns

A pointer to the allocated memory on success, or NULL on failure.

Description

This method allocates enough memory for the specified number of objects of the specified size, and initializes the memory to zero.