MLReleaseInteger64List (C 関数)

MLReleaseInteger64ListWSReleaseInteger64Listに置き換えられた.

void MLReleaseInteger64List(MLINK link,mlint64 *a,int n)

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

詳細

  • MLReleaseInteger64List()は,MathLinkヘッダファイルmathlink.hの中で宣言される.

例題

  (1)

#include "mathlink.h"

/* read a list of 64-bit integers from a link and then release the memory to MathLink for deallocation */

void f(MLINK lp)
{
    mlint64 *data;
    int length;

    if(! MLGetInteger64List(lp, &data, &length))
        { /* unable to read the list of integers from lp */ }

    /* ... */

    MLReleaseInteger64List(lp, data, length);
}