RosettaCodeData/Task/Call-a-foreign-language-function/Mathematica/call-a-foreign-language-function.math
2023-07-01 13:44:08 -04:00

3 lines
155 B
Text

Needs["NETLink`"];
externalstrdup = DefineDLLFunction["_strdup", "msvcrt.dll", "string", {"string"}];
Print["Duplicate: ", externalstrdup["Hello world!"]]