append


Description:

[ ReturnsModifiedPointer ]
public void append (owned G data)

Example: Append a value:

public static int main (string[] args) {
SList<string> list = new SList<string> ();
list.append ("1. entry");
list.append ("2. entry");
list.append ("3. entry");

foreach (string str in list) {
print ("%s\n", str);
}

return 0;
}

valac --pkg glib-2.0 GLib.SList.append.vala