C Collections

cstring · Section 3

cstr_prepend

cstr_prepend - prepend a C string, and call ccol__fatal_err() on failure

C Collections (libccollections, -lccollections)

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

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

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

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

cstring_prepend(3), cstr_append(3), cstr_insert(3)