add static strvec initializer macradd static strvec initializer macroo
This commit is contained in:
@@ -23,6 +23,10 @@ struct UCStrv
|
|||||||
*/
|
*/
|
||||||
void uc_strv_init(struct UCStrv *strv);
|
void uc_strv_init(struct UCStrv *strv);
|
||||||
|
|
||||||
|
/** static initializer. Use as: struct UCStrv foo = UC_STRV_INITIALIZER;
|
||||||
|
*/
|
||||||
|
#define UC_STRV_INITIALIZER {0, 0, NULL}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Grow the UCStrv so it can hold n more items
|
* Grow the UCStrv so it can hold n more items
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user