MLToLinkID (C Function)

MLToLinkID has been replaced by WSToLinkID.

long MLToLinkID(MLINK link)

returns the ID number of link.

Details

  • 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.

Examples

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 */ }
}