Slapi_Ch_Strdup(); Functions For Managing Dns - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Managing DNs

slapi_ch_strdup()

slapi_ch_strdup()
Makes a copy of an existing string.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_strdup( const char *s );
Parameters
This function takes the following parameter:
s
Returns
This function returns a pointer to a copy of the string. If space cannot be allocated,
e.g., 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.
308
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Pointer to the string you want to copy.
slapd
server with an "out of memory" error message
slapd
program terminates.
.
slapi_ch_free()

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents