![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 296](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642296.webp)
Functions for Managing Memory
296
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Syntax
#include “slapi-plugin.h”
void slapi_ch_free_string( char **s );
Parameters
This function takes the following parameter:
Description
This function is similar to
slapi_ch_free()
, but the argument is the address of a
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 parameters:
Returns
This function returns a pointer to the newly allocated space of memory. If space
cannot be allocated, for example, if no more virtual memory exists, the
slapd
program terminates.
Memory Concerns
This function terminates the
slapd
server with an “out of memory” error message
if memory cannot be allocated.
s
Address of the string that you want to free. If
NULL
, no action occurs.
size
Size of the space that you want to allocate memory for.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...