WSReleaseUCS2String (C 関数)
void WSReleaseUCS2String(WSLINK link,unsigned short *s,int n)
文字列s を保持するために,WSGetUCS2String()で割り当てられたメモリを解放する.
例題
例 (1)
#include "wstp.h"
/* read a UCS-2 encoding string from a link and then release the memory to WSTP for deallocation */
void f(WSLINK lp)
{
unsigned short *string;
int length;
if(! WSGetUCS2String(lp, &string, &length))
{ /* unable to read the UCS-2 string */ }
/* ... */
WSReleaseUCS2String(lp, string, length);
}