1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/os/bare/bare.v
Alexander Medvednikov 8d4ef822b6 1
2019-11-14 07:08:11 +03:00

17 lines
319 B
V

fn syscall5(number, arg1, arg2, arg3, arg4, arg5 voidptr) voidptr
fn write(fd int, data voidptr, nbytes u64) int {
return syscall5(
1, // SYS_write
fd,
data,
nbytes,
0, // ignored
0 // ignored
)
}
fn main() {
C.write(1, "hallo\n", 6)
}