[utils] cstring_array_cat

This commit is contained in:
Al
2015-10-03 16:00:13 -04:00
parent 5d2a24872a
commit 6428c0ae20
2 changed files with 12 additions and 0 deletions

View File

@@ -735,6 +735,14 @@ inline void cstring_array_append_string_len(cstring_array *self, char *str, size
char_array_append_len(self->str, str, len);
}
inline void cstring_array_cat_string(cstring_array *self, char *str) {
char_array_cat(self->str, str);
}
inline void cstring_array_cat_string_len(cstring_array *self, char *str, size_t len) {
char_array_cat_len(self->str, str, len);
}
inline int32_t cstring_array_get_offset(cstring_array *self, uint32_t i) {
if (INVALID_INDEX(i, self->indices->n)) {
return -1;