cp_string_tocstr(3) - Linux man page
Name
cp_string_tocstr - retrieve the underlying character pointer from a cp_string
Synopsis
#include <cprops/str.h>
char *cp_string_tocstr(cp_string *str);
Description
cp_string objects allocate a buffer at least one byte bigger than required to hold the
length of the data they contain. cp_string_tocstr sets this extra byte to '\0' and returns a pointer to the internal buffer.
Return Value
a pointer to the internal buffer, which is guaranteed to be null terminated.