Skip to content
Joachim Stolberg edited this page May 7, 2022 · 5 revisions

itoa

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

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

halt aborts the program execution.