WSReleaseUCS2LinkName()

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.

Details

  • 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.

Examples

Basic Examples  (1)

#include "wstp.h"

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

void f(WSLINK 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);
}

See Also

WSUCS2LinkName()  WSReleaseLinkName()  WSReleaseUTF16LinkName()  WSReleaseUTF32LinkName()  WSReleaseUTF8LinkName()

Tutorials