ss_string_insert_c_string(3) - Linux man page
Name
ss_string_insert, ss_string_insert_c_string, ss_string_insert_c_string_l - inserts a substringSynopsis
Linking with -lsstrings2
int ss_string_insert(ss_string *string, const ss_string *insert, size_t pos);
int ss_string_insert_c_string(ss_string *string, const char *insert, size_t pos);
int ss_string_insert_c_string_l(ss_string *string, const char *insert, size_t ins_len, size_t
pos);
Description
ss_string_insert inserts the string saved in insert at position pos of string. Note that string and insert must be valid ss_string objects (initialized with ss_string_new).ss_string_insert_c_string inserts the C-string insert at position pos of string. Note that string and insert must be valid ss_string objects (initialized with ss_string_new).
ss_string_insert_c_string_l works like ss_string_insert_c_string. ins_len is the right length of insert. Note that this function does not check whether ins_len is the right length of insert.
Returning Value
The functions return 1 on success, 0 otherwiseError values for ss_errno
SS_NULL is a parameteris NULL
SS_NOMEM if there is no more memory left
SS_EINVAL if the ss_string
objects are invalid
SS_EINVAL if pos is equal or greater than the string
length saved in string