WSReleaseUCS2Symbol (C 函数)
void WSReleaseUCS2Symbol(WSLINK link,unsigned short *s,int len)
释放由 WSGetUCS2Symbol() 分配的存储对应于一个符号名称的长度为 len 的 UCS-2 Unicode 字符串 s 的内存.
范例
基本范例 (1)
#include "wstp.h"
/* read a UCS-2 encoded symbol from a link and then release the memory to WSTP for deallocation */
void f(WSLINK lp)
{
unsigned short *symbol;
int length;
if(! WSGetUCS2Symbol(lp, &symbol, &length))
{ /* unable to read the UCS-2 symbol */ }
/* ... */
WSReleaseUCS2Symbol(lp, symbol, length);
}