itoa
This commit is contained in:
@@ -2,14 +2,12 @@ let SYS_WRITE = 1;
|
||||
let STD_OUT = 1;
|
||||
let STD_ERR = 2;
|
||||
|
||||
extern func print_int(value: int64);
|
||||
|
||||
func print(msg: String) {
|
||||
syscall(SYS_WRITE, STD_OUT, msg, str_len(msg));
|
||||
}
|
||||
|
||||
func print(value: int64) {
|
||||
print_int(value);
|
||||
print(itoa(value));
|
||||
}
|
||||
|
||||
func print(value: bool) {
|
||||
|
||||
Reference in New Issue
Block a user