cstring · Section 3
cstring_create
NAME
cstring_create - create a string with default memory management
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> cstr cstring_create(const char *initial, char **err);
DESCRIPTION
This is cstring_create_full() with the default malloc/free allocators.
PARAMETERS
initial Initial C string content, or NULL for an empty string err Optional pointer to receive an error string on failure
RETURN VALUE
A pointer to the new cstring on success NULL on failure, with the details written to *err when err is not NULL
NOTES
The call is the same as cstring_create_full(initial, NULL, err)