cstring · Section 3
cstr_replace
NAME
cstr_replace - replace all the occurrences of needle, and call ccol__fatal_err() on failure
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> cstr_replace(s, needle, replacement);
DESCRIPTION
This macro calls cstring_replace(), and when that call gives anything other than ccol_success it calls ccol__fatal_err().
PARAMETERS
s cstr to change needle Substring to search for (must not be NULL or empty) replacement Substitute string (must not be NULL)
NOTES
If you want to handle an error yourself, call cstring_replace() directly.