ss_string_copy_c_string_l(3) - Linux man page
Name
ss_string_copy, ss_string_copy_c_string, ss_string_c_string_l - copies a stringSinopsys
Linking with -lsstrings2
int ss_string_copy(ss_string *dest, const ss_string *src);
int ss_string_copy_c_string(ss_string *dest, const char *src);
int ss_string_copy_c_string_l(ss_string *dest, const char *src, size_t len);
Description
ss_string_copy copies the string saved in src to the string saved in dest (like strcpy(3)). Note that both ss_string objects have to be initialized with ss_string_new.ss_string_copy_c_string copies the C-String pointed to by src to the string saved in dest. Note that dest must be a valid ss_string object.
ss_string_copy_c_string_l works like ss_string_copy_c_string. The third parameter, len, is the right length of src. Note that this function does not check whether len is the right length of src.
Returning value
The functions return 1 on success, 0 otherwise.Error values for ss_errno
SS_NULL is a parameter is NULLSS_NOMEM if there
is no more memory left
SS_EINVAL if the ss_string objects are invalid