WSFromLinkID (C 函数)
范例
基本范例 (1)
#include "wstp.h"
/* read data from the link represented by id */
void f(WSENV env, long id)
{
WSLINK lp;
lp = WSFromLinkID(env, id);
if(lp == (WSLINK)0)
{ /* unable to get the link from the id number */ }
/* determine the type of data on lp */
switch(WSGetNext(lp))
{
/* ... */
}
/* ... */
}