to_string


Description:

[ CCode ( cname = "g_strdup_printf" , instance_pos = -1 ) ]
public string to_string (string format = "%hhi")

Converts the value to its equivalent string representation

Example: Int8 to string:

public static int main () {
int8 num = 100;
print ("%s\n", num.to_string ());
return 0;
}

valac --pkg glib-2.0 int8.to_string.vala