to_string
Description:
[ CCode ( cname = "g_strdup_printf" , instance_pos = -1 ) ]
public string to_string (string format = "%hhu")
public string to_string (string format = "%hhu")
Converts the value to its equivalent string representation
Example: Uint8 to string:
public static int main (string[] args) {
// Output: ``uint8.MIN = 0``
print ("uint8.MIN = %s\n", uint8.MIN.to_string ());
// Output: ``uint8.MAX = 255``
print ("uint8.MAX = %s\n", uint8.MAX.to_string ());
return 0;
}
valac --pkg glib-2.0 uint8.to_string.vala