Jump to content

Call a foreign-language function: Difference between revisions

(Added Wren)
Line 2,421:
println(callStrdup("Hello World!"))
}</lang>
=={header|Smalltalk}}==
{{works with | Smalltalk/X}}
<lang Smalltalk>Object subclass:'CallDemo'!
!CallDemo class methods!
strdup:arg
<cdecl: char* 'strdup' (char*) module:'libc'>
! !
 
Transcript showCR:( CallDemo strdup:'Hello' )</lang>
 
=={{header|Stata}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.