mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 19:52:10 +01:00
g_strv_builder_take() allows to transfer ownership of the passed in string. This can be useful to avoid additional allocations when using functions that transfer ownership to the caller like g_strdup_printf(). The testcase uses g_strv_builder_take and g_strv_builder_add to demo that calls can be mixed.