strlen
This commit is contained in:
@@ -7,6 +7,6 @@ func main() {
|
||||
write("test\n");
|
||||
}
|
||||
|
||||
func write(msg: pointer) {
|
||||
syscall(SYS_WRITE, STD_OUT, msg, 5);
|
||||
func write(msg: String) {
|
||||
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
|
||||
}
|
||||
Reference in New Issue
Block a user