mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
docs: fix link for an example of a module that calls C code from V (#20586)
This commit is contained in:
parent
5310c102a6
commit
a6f2f6ab65
@ -6962,7 +6962,7 @@ To cast a `voidptr` to a V reference, use `user := &User(user_void_ptr)`.
|
|||||||
|
|
||||||
`voidptr` can also be dereferenced into a V struct through casting: `user := User(user_void_ptr)`.
|
`voidptr` can also be dereferenced into a V struct through casting: `user := User(user_void_ptr)`.
|
||||||
|
|
||||||
[an example of a module that calls C code from V](https://github.com/vlang/v/blob/master/vlib/v/tests/project_with_c_code/mod1/wrapper.v)
|
[an example of a module that calls C code from V](https://github.com/vlang/v/blob/master/vlib/v/tests/project_with_c_code/mod1/wrapper.c.v)
|
||||||
|
|
||||||
### C Declarations
|
### C Declarations
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user