to_str


Description:

[ CCode ( cname = "g_ascii_dtostr" , instance_pos = -1 ) ]
public unowned string to_str (char[] buffer)

Example: Double to string (with buffer):

public static int main (string[] args) {
// Output: ``20``
char[] buf = new char[double.DTOSTR_BUF_SIZE];
unowned string str = (20.0).to_str (buf);
print ("%s\n", str);
return 0;
}

valac --pkg glib-2.0 double.to_str.vala