to_pointer


Description:

[ CCode ( cname = "GINT_TO_POINTER" ) ]
public void* to_pointer ()

Example: Into to pointer:

public static int main (string[] args) {
// Output: ``10``
void* ptr = 10.to_pointer ();
print ("%d\n", (int) ptr);
return 0;
}

valac --pkg glib-2.0 int.to_pointer.vala