Add uc_str_append_all function

This commit is contained in:
Nils O. Selåsdal
2013-09-15 00:01:19 +02:00
parent 03d700595b
commit 9988d8f4c0
3 changed files with 88 additions and 0 deletions
+12
View File
@@ -83,6 +83,18 @@ void uc_strv_clear(struct UCStrv *strv);
*/
void uc_strv_destroy(struct UCStrv *strv);
/**
* Append all the elments from b to a
* If copy is 1, the appended elements will be copied when appended
*
* @param a destination UCStrv
* @param b source UCStrv
* @param copy 1 for making a copy of the string when appending it
* 0 to just append the same pointer in b to a
* @return 0 on success, != 0 if appending/allocation fails
*/
int uc_strv_append_all(struct UCStrv *a, struct UCStrv *b, int copy);
#ifdef __cplusplus
}
#endif