MLFromLinkID (C 函数)
MLFromLinkID 已经被 WSFromLinkID 所取代.
更多信息

- 如果在环境 env 中没有链接对象具有 inumb ID 号,那么 MLFromLinkID() 返回 (MLINK)0.
- MLFromLinkID() 在 MathLink 的标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* read data from the link represented by id */
void f(MLENV env, long id)
{
MLINK lp;
lp = MLFromLinkID(env, id);
if(lp == (MLINK)0)
{ /* unable to get the link from the id number */ }
/* determine the type of data on lp */
switch(MLGetNext(lp))
{
/* ... */
}
/* ... */
}