diff common/strhelp.h @ 91:80ab2168760f

Also add output size handling to str_append_str
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 09:47:05 +0000
parents 6acb1dae6185
children c602d8cfa619
line wrap: on
line diff
--- a/common/strhelp.h	Fri Mar 21 09:45:54 2014 +0000
+++ b/common/strhelp.h	Fri Mar 21 09:47:05 2014 +0000
@@ -34,10 +34,12 @@
 /* @brief append a string to another string.
  *
  * @param[inout] pDst pointer to the string to be extended.
+ * @param[inout] dst_len length of the dst string. Will be modified.
  * @param[in] appendage pointer to the string to append.
  * @param[in] len length of the string to append.
  * */
-void str_append_str(char **pDst, const char *appendage, const size_t len);
+void str_append_str(char **pDst, size_t *dst_len, const char *appendage,
+                    const size_t len);
 
 void strfreev (char **str_array);
 #endif

http://wald.intevation.org/projects/trustbridge/