comparison common/strhelp.c @ 116:c602d8cfa619

Refactoring: unified naming of string vector functions.
author Sascha Wilde <wilde@intevation.de>
date Fri, 21 Mar 2014 17:42:00 +0100
parents 80ab2168760f
children 9104b1b2e4da
comparison
equal deleted inserted replaced
114:447a7abee6c7 116:c602d8cfa619
49 ++i; 49 ++i;
50 50
51 return i; 51 return i;
52 } 52 }
53 53
54 void array_append_str(char ***pArray, const char *string, const size_t len) 54 void strv_append (char ***pArray, const char *string, const size_t len)
55 { 55 {
56 unsigned int old_len = 0; 56 unsigned int old_len = 0;
57 57
58 if (!*pArray) { 58 if (!*pArray) {
59 *pArray = xmalloc(2 * sizeof(char*)); 59 *pArray = xmalloc(2 * sizeof(char*));
88 free (p_old); 88 free (p_old);
89 } 89 }
90 } 90 }
91 91
92 void 92 void
93 strfreev (char **str_array) 93 strv_free (char **str_array)
94 { 94 {
95 if (str_array) 95 if (str_array)
96 { 96 {
97 int i; 97 int i;
98 98

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