StrvBuilder
Object Hierarchy:
Description:
[ Compact ]
[ Version ( since = "2.68" ) ]
[ CCode ( has_type_id = false , ref_function = "g_strv_builder_ref" , unref_function = "g_strv_builder_unref" ) ]
public class StrvBuilder
[ Version ( since = "2.68" ) ]
[ CCode ( has_type_id = false , ref_function = "g_strv_builder_ref" , unref_function = "g_strv_builder_unref" ) ]
public class StrvBuilder
`GStrvBuilder` is a helper object to build a null-terminated string arrays.
The following example shows how to build a two element array:
```c 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); ```
Namespace: GLib
Package: glib-2.0