[utils] cstring_array_terminate, moving msgpack_utils to separate file

This commit is contained in:
Al
2015-07-25 18:39:57 -04:00
parent 42f6be7434
commit a67ec44a08
6 changed files with 142 additions and 83 deletions

View File

@@ -628,6 +628,10 @@ inline uint32_t cstring_array_start_token(cstring_array *self) {
return index;
}
inline void cstring_array_terminate(cstring_array *self) {
char_array_terminate(self->str);
}
inline uint32_t cstring_array_add_string(cstring_array *self, char *str) {
uint32_t index = cstring_array_start_token(self);
char_array_append(self->str, str);