slapi_ch_strdup()
slapi_ch_strdup() makes a copy of an existing
string. It calls the standard strdup() C function.
- Syntax
#include "slapi-plugin.h" char * slapi_ch_strdup( char *s );- Parameters
-
- s
- Refers to the string you want to copy.
- Returns
- A pointer to a copy of the string is returned. If space cannot be allocated (for example, if no more virtual memory exists), a NULL pointer is returned.