cstring · Section 3
cstr_set
NAME
cstr_set - replace the full content, and call ccol__fatal_err() on failure
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> cstr_set(s, str);
DESCRIPTION
This macro calls cstring_set(), and when that call gives anything other than ccol_success it calls ccol__fatal_err().
PARAMETERS
s cstr to change str New content (must not be NULL)
NOTES
If you want to handle an error yourself, call cstring_set() directly.