This feature is not supported on the Wolfram Cloud.

MLReleaseReal128Array 已经被 WSReleaseReal128Array 所取代.

void MLReleaseReal128Array(MLINK link,long double *a,int *dims,char **heads,int d)
释放由 MLGetReal128Array() 分配的存储维数为 dims 和标头为 heads 的数组 a 的内存.


  • MLReleaseReal128Array() 在 MathLink 标头文件 mathlink.h 中被声明.


基本范例  (1)基本范例  (1)

#include "mathlink.h"

/* read an array of extended-precision floating-point numbers from a link and then release the memory to MathLink for deallocation */

void f(MLINK lp)
    mlextended_double *data;
    int *dimensions;
    char **heads;
    int depth;

    if(! MLGetReal128Array(lp, &data, &dimensions, &heads))
        { /* Unable to get the array from lp */ }

    /* ... */

    MLReleaseReal128Array(lp, data, dimensions, heads, depth);