to_string
Description:
[ CCode ( cname = "g_strdup_printf" , instance_pos = -1 ) ]
public string to_string (string format = "%hu")
public string to_string (string format = "%hu")
Converts the value to its equivalent string representation
Example: Ushort to string:
public static int main () {
ushort num = 1000;
print ("%s\n", num.to_string ());
return 0;
}
valac --pkg glib-2.0 ushort.to_string.vala