Next Previous Contents

95. SLcalloc

Synopsis

Allocate some memory

Usage

char *SLcalloc (unsigned int num_elem, unsigned int elem_size)

Description

This function uses calloc to allocate memory for num_elem objects with each of size elem_size and returns the result. In addition, the newly allocated memory is zeroed. Upon error it returns NULL; otherwise it returns a pointer to the allocated memory. One should use SLfree to free the memory after used.

See Also

SLmalloc, SLrealloc, SLfree


Next Previous Contents