cp_string_cstrdup(3) - Linux man page

Name

cp_string_cstrdup - duplicate a null terminated string

Synopsis

#include <cprops/str.h>

cp_string *cp_string_cstrdup(char *src);

Description

cp_string_cstrdup 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_cstrdup may fail on systems where malloc(3) might fail.

See Also

cp_string_dup(3), malloc(3)

Referenced By

cp_string_create(3), cp_string_cstrcpy(3)