Add uc_dstr_copy

This commit is contained in:
Nils O. Selåsdal
2013-12-05 01:24:41 +01:00
parent 9723a579cc
commit 565de6ace7
3 changed files with 58 additions and 0 deletions
+9
View File
@@ -40,6 +40,15 @@ void uc_dstr_init(struct DStr *str);
*/
void uc_dstr_destroy(struct DStr *str);
/** Copy a DStr
*
* @param dest destination string to copy to, must not contain an existing string
* @param src DStr to copy
*
* @return 0 if success, != 0 if allocation fails
*/
int uc_dstr_copy(struct DStr *dest, const struct DStr *src);
/**
* @return the available/unused tail bytes in the string.
*/