MLReleaseUCS2Symbol (C Function)
MLReleaseUCS2Symbol has been replaced by WSReleaseUCS2Symbol.
void MLReleaseUCS2Symbol(MLINK link,unsigned short *s,int len)
disowns memory allocated by MLGetUCS2Symbol() to store the UCS-2 Unicode string s with length len corresponding to the name of a symbol.
Examples
Basic Examples (1)
#include "mathlink.h"
/* read a UCS-2 encoded symbol from a link and then release the memory to MathLink for deallocation */
void f(MLINK lp)
{
unsigned short *symbol;
int length;
if(! MLGetUCS2Symbol(lp, &symbol, &length))
{ /* unable to read the UCS-2 symbol */ }
/* ... */
MLReleaseUCS2Symbol(lp, symbol, length);
}