-
Notifications
You must be signed in to change notification settings - Fork 2
Stdlib
Joachim Stolberg edited this page May 7, 2022
·
5 revisions
itoa
returns the provided value as decimal string.
ptr = itoa(val, s)
val
is the provided value, s
is a pointer to the buffer for the result string. The function returns the pointer the string.
Example:
var buff[4];
...
putstr(itoa(123, buff)); // => "123"
itoha
returns the provided value as hexadecimal string.
ptr = itoha(val, s)
val
is the provided value, s
is a pointer to the buffer for the result string. The function returns the pointer the string.
Example:
var buff[4];
...
putstr(itoha(0x12A, buff)); // => "012A"
halt
aborts the program execution.