cp_string_tocstr(3)
| cp_string(3) | cp_string | cp_string(3) |
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.
| MARCH 2006 | libcprops |
