Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
unsafe_c_calls_should_be_checked.vv
5
lines
·
5
sloc
·
74 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
fn test_c() {
2
mut p := C.malloc(4)
3
s := 'hope'
4
C.memcpy(p, s.str, 4)
5
}
6