1
2
3
4
5
6
7
8
9
|
namespace;
include rt;
unchecked fn main() {
int fd = 0;
let first = rt.syscall(51, fn() { rt.syscall(7, 5, 0, 0); return 0; } as word, &fd, 0);
rt.put_n(rt.syscall(52, first, 0, 0)); rt.put_c(' ');
let second = rt.syscall(51, fn() { int value = 7; rt.syscall(44, fd, &value, 1); return 0; } as word, &fd, 0);
int result; rt.syscall(45, fd, &result, 1); rt.syscall(52, second, 0, 0); rt.put_n(result); rt.put_c(10); return 0;
}
|