slapi_ch_calloc()
slapi_ch_calloc() allocates space for
an array of elements of a specified size. It calls the calloc() C
function. If the function fails to allocate memory, it returns NULL
to the caller function.
- Syntax
#include "slapi-plugin.h" char * slapi_ch_calloc( unsigned long nelem, unsigned long size );- Parameters
-
- nelem
- The number of elements that you want to allocate memory for.
- size
- The amount of memory of each element that you want to allocate memory for.