Jump to content

Call a foreign-language function: Difference between revisions

Added Kotlin
mNo edit summary
(Added Kotlin)
Line 893:
 
julia> ccall(:free, Void, (Ptr{Uint8},), p)</lang>
 
=={{header|Kotlin}}==
{{Works with|Ubuntu|14.04}}
<lang scala>// Kotlin Native v0.2
 
import kotlinx.cinterop.*
import string.*
 
fun main(args: Array<String>) {
val hw = strdup ("Hello World!")!!.toKString()
println(hw)
}</lang>
 
{{out}}
<pre>
Hello World!
</pre>
 
=={{header|LabVIEW}}==
9,490

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.