cstring · Section 3
cstring_prepend
NAME
cstring_prepend - prepend a C string to the beginning
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> ccol_retval cstring_prepend(cstr s, const char *str);
DESCRIPTION
This function inserts the null-terminated C string str in front of all the characters of s, moving the existing content right to make room.
PARAMETERS
s String to change str C string to prepend (must not be NULL)
RETURN VALUE
ccol_success - The prepend succeeded ccol_invalid_args - str is NULL ccol_container_full - The result would overflow a size_t ccol_not_enough_memory - The reallocation failed
NOTES
Asserts if s is NULL