Anonymous user
Call a foreign-language function: Difference between revisions
→{{header|Scala}}
(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}}==
|