WSReleaseInteger8List()

void WSReleaseInteger8List( WSLINK l , unsigned char * a , int n )

releases memory allocated by WSGetInteger8List() to store the array a of length n.

Details

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

Examples

Basic Examples  (1)

#include "wstp.h"

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

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

See Also

WSGetInteger8List()  WSReleaseInteger16List()  WSReleaseInteger32List()  WSReleaseInteger64List()

Tutorials