MLReleaseInteger8List (C 函数)

MLReleaseInteger8List 已经被 WSReleaseInteger8List 所取代.

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

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

更多信息

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

范例

基本范例  (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);
}