code wiki / (root) / nx_byteload_debug.nx

nx_byteload_debug.nx source

↩ module page · 8 lines · 262 B

1// nx_byteload_debug.nx -- Converts the ASCII value of the first byte of the string "GET" to an integer and returns it. 2import "nx_syscalls.nx" 3 4func main() -> i64 { 5 let s: *u8 = "GET" as *u8 6 let b: i64 = s[0] as i64 7 return b // expect 0x47 = 71 8}