public static int main (string[] args) {
// Output: ``hello, world!``
StringBuilder subbuilder = new StringBuilder ("hello");
StringBuilder builder = new StringBuilder ();
builder.append_len (subbuilder.str, subbuilder.len);
builder.append_len (", world!\n", 9);
print (builder.str);
return 0;
}
valac --pkg glib-2.0 GLib.StringBuilder.append_len.vala