WSFromLinkID (C Function)
Examples
Basic Examples (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))
{
/* ... */
}
/* ... */
}