StrvBuilder


Object Hierarchy:

Object hierarchy for StrvBuilder

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

StrvBuilder is a method of easily building dynamically sized 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);


Namespace: GLib
Package: glib-2.0

Content:

Creation methods:

Methods: