add static strvec initializer macradd static strvec initializer macroo

This commit is contained in:
Nils O. Selåsdal
2013-10-05 20:36:11 +02:00
parent 88a20409cf
commit bb5e21d29b
+4
View File
@@ -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
* *