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

void WSReleaseInteger8List(WSLINK l, unsigned char *a, int n)
releases memory allocated by WSGetInteger8List() to store the array a of length n.

DetailsDetails

  • The array a must have been created by a call to WSGetInteger8List().
  • WSReleaseInteger8List() is declared in the WSTP header file wstp.h.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* A function to read a list of 8-bit integers from a link */

void f(WSINK l)
{
    unsigned char *a;
    int length;

    if(! WSGetInteger8List(l, &a, &length))
    { /* Unable to read the list of integers from the link */ }

    /* ... */

    WSReleaseInteger8List(l, a, length);
}