Call a foreign-language function: Difference between revisions
Content added Content deleted
(Added Wren) |
|||
Line 2,421: | Line 2,421: | ||
println(callStrdup("Hello World!")) |
println(callStrdup("Hello World!")) |
||
}</lang> |
}</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}}== |
=={{header|Stata}}== |