Anonymous user
Call a function in a shared library: Difference between revisions
Call a function in a shared library (view source)
Revision as of 13:09, 13 February 2012
, 12 years ago→{{header|Mathematica}}
(Added BBC BASIC) |
|||
Line 302:
}
}</lang>
=={{header|Mathematica}}==
This works on windows and on linux/mac too (through Mono)
<lang Mathematica>Needs["NETLink`"];
externalFloor = DefineDLLFunction["floor", "msvcrt.dll", "double", { "double" }];
externalFloor[4.2]
-> 4.</lang>
=={{header|OCaml}}==
|