MLToLinkID()

long MLToLinkID(MLINK link)
returns the ID number of link.

DetailsDetails

  • The ID number is suitable for use with MLFromLinkID().
  • MLToLinkID() returns 0 in the event of an error and a positive integer value otherwise.
  • MLToLinkID() is declared in the MathLink header file mathlink.h.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

#include "mathlink.h"

/* get the link id number */

void f(MLINK lp)
{
    long idnumber;

    idnumber = MLToLinkID(lp);
    if(idnumber == 0)
        { /* unable to get the link id number */ }
}
New to Mathematica? Find your learning path »
Have a question? Ask support »