Functions for Managing DNs
slapi_ch_calloc()
slapi_ch_strdup()
slapi_ch_strdup()
Makes a copy of an existing string.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_strdup( char *s );
Parameters
This function takes the following parameters:
s
Returns
This function returns a pointer to a copy of the string. If space cannot be allocated,
for example, if no more virtual memory exists, the
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_malloc()
slapi_ch_realloc()
Functions for Managing DNs
This section contains reference information on routines for handling DNs.
298
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Pointer to the string you want to copy.
server with an "out of memory" error message
slapd
program terminates.
slapd
.
slapi_ch_free()
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers