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

Method: Realloc

Purpose

Reallocates memory that was previously allocated.

Syntax

void* Realloc (void* aPtr,PRUint32 nBytes)=0;

Parameters

The method has the following parameter:

aPtr

A pointer to previously allocated memory. 

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 to reallocate memory that was previously allocated.