Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface > MathLink C Language Functions >
Mathematica > Systems Interfaces & Deployment > MathLink API > MathLink C Language Functions >
MathLink C Function

MLToLinkID()

long MLToLinkID(MLINK link)
returns the ID number of link.
  • 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.
#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 */ }
}
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team