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

Method: Malloc

Purpose

Allocate a specified amount of memory.

Syntax

void* Malloc (PRUint32 nBytes)=0;

Parameters

The method has the following parameter:

nBytes

The size in bytes of the memory to be allocated. 

Returns

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

Description

Use this method in the same way as its C or C++ counterpart.