move


Description:

[ CCode ( cname = "memmove" ) ]
public void* move (void* dest, void* src, size_t n)

Example: Move block of memory:

public static int main (string[] args) {
string str = "everybody loves the gimp!!!!!!";
char* ptr = str;

// Output: ``everybody loves thes the gimp!``
Memory.move (ptr + 18, ptr + 13, 12);
print ("%s\n", str);
return 0;
}

valac --pkg glib-2.0 GLib.Memory.move.vala


Namespace: GLib.Memory
Package: glib-2.0