WSReleaseLinksFromEnvironment (C 函数)

void WSReleaseLinksFromEnvironment( WSENV env , WSLINK * l , int n )

释放存储在 l 中的链接协议,n 中的列表长度,由 WSGetLinksFromEnvironment() 分配的内存.

更多信息

范例

基本范例  (1)

#include "wstp.h"

/* A function for retrieving the current links open from an environment */

void f(WSENV env)
{
    WSLINK *theList;
    int length;

    if(! WSGetLinksFromEnvironment(env, &theList, &length))
    { /* Unable to get the list of links */ }

    /* ... */

    WSReleaseLinksFromEnvironment(env, theList, length);    
}