MLReleaseInteger8List (C Function)

MLReleaseInteger8List has been replaced by WSReleaseInteger8List.

void MLReleaseInteger8List( MLINK l , unsigned char * a , int n )

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

Details

  • The array a must have been created by a call to MLGetInteger8List().
  • MLReleaseInteger8List() is declared in the MathLink header file mathlink.h.

Examples

Basic Examples  (1)

#include "mathlink.h"

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

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

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

    /* ... */

    MLReleaseInteger8List(l, a, length);
}