Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > 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 */ }
}
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team