Call a foreign-language function: Difference between revisions
Content added Content deleted
(→{{header|CMake}}: Warn about deprecation. Add instruction to run `cmake .`.) |
|||
Line 888:
=={{header|Julia}}==
Julia has a built-in keyword <code>ccall</code> to call external C-like functions. For example:
<lang julia>
@show unsafe_string(p) # "Hello world"
</lang>
▲julia> ccall(:free, Void, (Ptr{Uint8},), p)</lang>
=={{header|Kotlin}}==
|