Safe string concatenation function. Appends at most target_size - strlen(target_str) - 1 characters of source_str to target_str. The result is always a null terminated string, except when source_str or target_str are NULL, or target_size is 0, or the string pointed to by target_str is longer than target_size bytes.
CS_RETCODE cs_strlcat(target_str, source_str, target_size) CS_CHAR *target_str; CS_CHAR *source_str; CS_INT *target_size;
The target string where source string is to be appended.
The source string to be appended.
Size of the target string.
0 if source_str is NULL, target_str is NULL, or target_size is 0
target_size in case of an overflow
strlen(target_str) + strlen(source_str) in all other cases