Convert an integer to a string
valstr( dest[], value, bool:pack=true )
Parameter dest should be of sufficient size to hold the converted number. The function does not check this.
dest | The buffer that will hold the string |
value | integer value to be converted |
pack (optional) | Controls if the resulting string is packed or not. Default is true (packed). |
Number of characters writted to dest, excluding the terminating null character.
new x = 1234; new s{20}; valstr(s, x); // returns 4 // s now contains "1234"