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

void WSReleaseUTF8LinkName(WSLINK l, const unsigned char *n, int v)
releases memory allocated by WSUTF8LinkName() to store the UTF-8 encoded link name n, an array of length v.

DetailsDetails

  • The memory allocated to store the link name n must have been allocated by a call to WSUTF8LinkName().
  • WSReleaseUTF8LinkName() 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 char *name;
    int length;

    name = WSUTF8LinkName(l, &length);
    if(name == (const unsigned char *)0 || length == 0)
    { /* Unable to get the name of the link */ }

    /* ... */

    WSReleaseUTF8LinkName(l, name, length);
}
Introduced in 2014
(10.0)