MLReleaseInteger8Array (C 関数)

MLReleaseInteger8ArrayWSReleaseInteger8Arrayに置き換えられた.

void MLReleaseInteger8Array( MLINK l , unsigned char * a , int * d , char ** h , int depth )

配列 a,その次元 d,頭部 h を保存するために,MLGetInteger8Array()で割り当てられたメモリを解放する.

詳細

  • 配列 a は,MLGetInteger8Array()への呼出しによって割り当てられていなければならない.
  • MLReleaseInteger8Array()は,MathLinkヘッダファイルmathlink.hで宣言される.

例題

  (1)

#include "mathlink.h"

/* A function for retrieving an array of 8-bit integers from a link */

void f(MLINK l)
{
    unsigned char *data;
    int *dims;
    char **heads;
    int depth;

    if(! MLGetInteger8Array(l, &data, &dims, &heads, &depth))
    { /* Unable to get the array of integers from the link */ }

    /* ... */

    MLReleaseInteger8Array(l, data, dims, heads, depth);
}