MLINK


is a MathLink type representing a MathLink link object.

DetailsDetails

  • is analogous to LinkObject in Mathematica.
  • MLINK is defined in the file mathlink.h, which should be included in the source code for any MathLink-compatible program.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

#include "mathlink.h"

int main(int argc, char **argv)
{
    MLENV ep;
    MLINK lp;
    long error;

    ep = MLInitialize((MLParametersPointer)0);
    if(ep == (MLENV)0)
        { /* unable to initialize environment */ }

    lp = MLOpenArgcArgv(ep, argv, argv + argc, &error);
    if(lp == (MLINK)0 || error != MLEOK)
        { /* unable to create link */ }

    /* ... */

    MLClose(lp);
    MLDeinitialize(ep);
    return 0;
}
New to Mathematica? Find your learning path »
Have a question? Ask support »