glib.strv_builder.StrvBuilder is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array:
g_autoptr(GStrvBuilder) builder = g_strv_builder_new (); g_strv_builder_add (builder, "hello"); g_strv_builder_add (builder, "world"); g_auto(GStrv) array = g_strv_builder_end (builder);
glib.strv_builder.StrvBuilder is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array: