WSReleaseUCS2LinkName()
This feature is not supported on the Wolfram Cloud.

void WSReleaseUCS2LinkName(WSLINK l, const unsigned short *n, int v)
releases memory allocated by WSUCS2LinkName() to store the UCS2 encoded link name n, of length v.

DetailsDetails

  • The memory used to store the link name n must have been allocated by a call to WSUCS2LinkName().
  • WSReleaseUCS2LinkName() is declared in the WSTP header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* A function for reading the name of a link */

void f(WSINK 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);
}
Introduced in 2014
(10.0)