Allocates, and initializes to zero, memory for a number of objects.
void* Calloc (PRUint32 aSize, PPRUint32 aNum)=0;
The method has the following two parameters:
aSize |
The size in bytes of each object. |
nNum |
The number of objects. |
A pointer to the allocated memory on success, or NULL on failure.
This method allocates enough memory for the specified number of objects of the specified size, and initializes the memory to zero.