code wiki / (root) / _offc_bisect_ptr_arith.nx

_offc_bisect_ptr_arith.nx source

↩ module page · 7 lines · 136 B

1import "syscalls.nx" 2func main() -> i64 { 3 let buf: *u8 = sys_mmap(64) 4 buf[0] = 42 5 let v: i64 = buf[0] 6 return v 7}