Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 255

Table of Contents

Advertisement

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.
The returned pointer should be freed by calling
See Also
slapi_ch_free()
slapi_ch_calloc()
slapi_ch_realloc()
slapi_ch_strdup()
slapi_ch_realloc()
Changes the size of a block of allocated memory.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_realloc( char *block, unsigned long size );
Size of the space that you want to allocate memory for.
server with an "out of memory" error message
slapd
Functions for Managing Memory
.
slapi_ch_free()
Chapter 14
Function Reference
slapd
255

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents