slapi_ch_malloc()

slapi_ch_malloc() allocates space in memory, and calls the standard malloc() C function. If the function fails to allocate memory, it returns NULL to the caller function.

Syntax
#include "slapi-plugin.h"
char * slapi_ch_malloc(unsigned long size );
Parameters
size
The amount of space that you want memory that is allocated for.