cp_string_dup(3)
| cp_string(3) | cp_string | cp_string(3) |
NAME
cp_string_dup - duplicate a cp_string
SYNOPSIS
#include <cprops/str.h>
cp_string *cp_string_dup(cp_string *src);
DESCRIPTION
cp_string_dup creates a cp_string, copies the content of the src string and returns the resulting string.
RETURN VALUE
the newly allocated cp_string structure on success or NULL on failure. cp_string_dup may fail on systems where malloc(3) might fail.
SEE ALSO
cp_string_cstrdup(3), malloc(3)
| MARCH 2006 | libcprops |
