Functions for Managing Memory
Syntax
#include "slapi-plugin.h"
void slapi_ch_free_string( char **s );
Parameters
This function takes the following parameter:
s
Description
This function is similar to
string. This helps with compile time error checking.
See Also
slapi_ch_free()
slapi_ch_malloc()
Allocates space in memory.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_malloc( unsigned long size );
Parameters
This function takes the following parameter:
size
Returns
This function returns a pointer to the newly allocated space of memory. If space
cannot be allocated, e.g., no more virtual memory exists, the
terminates.
Memory Concerns
This function terminates the
if memory cannot be allocated.
306
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Address of the string that you want to free. If NULL, no action occurs.
slapi_ch_free()
Size of the space for which you want to allocate memory.
slapd
, but the argument is the address of a
server with an "out of memory" error message
program
slapd
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers