WSReleaseUCS2LinkName (C 函数)
void WSReleaseUCS2LinkName(WSLINK l, const unsigned short *n, int v)
释放由 WSUCS2LinkName() 分配的内存,以储存长度为 v 的 UCS2 编码的链接名称 n.
范例
基本范例 (1)
#include "wstp.h"
/* A function for reading the name of a link */
void f(WSLINK l)
{
const unsigned short *name;
int length;
name = WSUCS2LinkName(l, &length);
if(name == (const unsigned short *)0 || length == 0)
{ /* Unable to retrieve the link name */ }
/* ... */
WSReleaseUCS2LinkName(l, name, length);
}