Anonymous user
Call a foreign-language function: Difference between revisions
no edit summary
(Corrected tag) |
No edit summary |
||
Line 1,637:
string1 # string2
</pre>
=={{header|Mosaic}}==
<lang mosaic>import clib
importdll msvcrt =
clang function "_strdup" (ref char)ref char
end
proc start=
[]char str
ref char str2
strcpy(&.str,"hello strdup")
str2:=_strdup(&.str)
println str2
end</lang>
=={{header|Never}}==
|