C Collections

cstring · Section 3

cstr_append

cstr_append - append a C string, and call ccol__fatal_err() on failure

C Collections (libccollections, -lccollections)

#include <ccollections/cstring.h>
 
cstr_append(s, str);

This macro calls cstring_append(), and when that call gives anything
other than ccol_success it calls ccol__fatal_err().

s     cstr to change
str   C string to append (must not be NULL)

If you want to handle an error yourself, call cstring_append() directly.

cstring_append(3), cstr_prepend(3), cstr_insert(3), cstr_set(3)