MLReleaseInteger8List (C 関数)

MLReleaseInteger8ListWSReleaseInteger8Listに置き換えられた.

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

長さ n の配列 a を保存するために,MLGetInteger8List()で割り当てられたメモリを解放する.

詳細

  • 配列 a は,MLGetInteger8List()への呼出しによって作成されていなければならない.
  • MLReleaseInteger8List()は,MathLinkヘッダファイル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);
}