OpenersNotesSection(Spacer1)Details

MLReleaseUCS2Symbol() is declared in the MathLink header file (RefLink[mathlink.h, paclet:ref/file/mathlink.h]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)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);
}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(NonWLLink[MLGetUCS2Symbol(), paclet:ref/c/MLGetUCS2Symbol])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Manipulating Expressions in External Programs, paclet:tutorial/ManipulatingExpressionsInExternalPrograms])}, {▪(RefLinkPlain[Handling Lists, Arrays and Other Expressions, paclet:tutorial/HandlingListsArraysAndOtherExpressions])}})}})