Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 296

Table of Contents

Advertisement

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 parameters:
size
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
program terminates.
Memory Concerns
This function terminates the
if memory cannot be allocated.
296
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Address of the string that you want to free. If NULL, no action occurs.
slapi_ch_free()
Size of the space that you want to allocate memory for.
slapd
, but the argument is the address of a
server with an "out of memory" error message
slapd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents