WSReleaseInteger8List (C Function)

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

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


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


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);