1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/call_v_from_c/v_test_print.v

7 lines
103 B
V
Raw Normal View History

2022-09-25 22:52:40 +03:00
module test_print
[export: 'foo']
fn show_foo(s &char) {
println(unsafe { cstring_to_vstring(s) })
}