comparison 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
comparison
equal deleted inserted replaced
90:899fcddb92d0 91:80ab2168760f
32 void array_append_str(char ***pArray, const char *string, const size_t len); 32 void array_append_str(char ***pArray, const char *string, const size_t len);
33 33
34 /* @brief append a string to another string. 34 /* @brief append a string to another string.
35 * 35 *
36 * @param[inout] pDst pointer to the string to be extended. 36 * @param[inout] pDst pointer to the string to be extended.
37 * @param[inout] dst_len length of the dst string. Will be modified.
37 * @param[in] appendage pointer to the string to append. 38 * @param[in] appendage pointer to the string to append.
38 * @param[in] len length of the string to append. 39 * @param[in] len length of the string to append.
39 * */ 40 * */
40 void str_append_str(char **pDst, const char *appendage, const size_t len); 41 void str_append_str(char **pDst, size_t *dst_len, const char *appendage,
42 const size_t len);
41 43
42 void strfreev (char **str_array); 44 void strfreev (char **str_array);
43 #endif 45 #endif

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