Gtk is based on glib
that is near to "object-oriented" concepts and proposes utilities to manipulates complex datatypes such as lists, trees or maps (see documentation).
As a illustration, the code show a use of string
datatype
GString* s = g_string_new("Welcome to ");
g_string_append(s,"ou !");
g_string_insert_c(s,11,'y');
g_string_overwrite(s,11,"You");
g_print(s->str);