slapi_ch_realloc()
slapi_ch_realloc() changes the size of
a block of allocated memory. It calls the standard realloc() C
function. If the function fails to allocate memory, it returns NULL
to the caller function.
- Syntax
#include "slapi-plugin.h" char * slapi_ch_realloc( char *block, unsigned long size );- Parameters
-
- block
- A pointer to an existing block of allocated memory.
- size
- The new amount of the block of memory you want allocated.
- Returns
- A pointer to a newly allocated memory block with the requested size is returned.