1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/os/bare/bare_example_linux.v

8 lines
144 B
V
Raw Normal View History

2019-11-15 03:17:47 +03:00
fn main() {
sys_write(1, 'hello\n'.str, 6)
s := 'test string\n'
sys_write(1, s.str, u64(s.len))
2019-11-16 23:22:40 +03:00
a := s[0]
println("Hello freestanding!")
2019-11-15 03:17:47 +03:00
}