This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Listing of C Functions in the MathLink Library /

MLMain()

FilledSmallSquare int MLMain(int argc, char **argv) sets up communication between an external program started using Install and Mathematica.

FilledSmallSquare The code for MLMain() is generated automatically by mprep or mcc.

FilledSmallSquare MLMain() opens a MathLink connection using the parameters specified in argv, then goes into a loop waiting for CallPacket objects to arrive from Mathematica.

FilledSmallSquare MLMain() internally calls MLOpenArgv().

FilledSmallSquare See Section 2.13.3.