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

Method: FreeIf

Purpose

Free memory previously allocated by the Malloc method, allowing a NULL pointer.

Syntax

PRUint32 FreeIf (void * aPtr)=0;

Parameters

The method has the following parameter:

aPtr

A pointer to the memory to be freed or NULL.

Returns

NS_OK on success, non-zero error code on failure.

Description

Frees the memory at the specified location, if aPtr is not NULL.