WSReleaseReal128Array (C 函数)
void WSReleaseReal128Array(WSLINK link,long double *a,int *dims,char **heads,int d)
释放由 WSGetReal128Array() 分配的存储维数为 dims 和标头为 heads 的数组 a 的内存.
范例
基本范例 (1)
#include "wstp.h"
/* read an array of extended-precision floating-point numbers from a link and then release the memory to WSTP for deallocation */
void f(WSLINK lp)
{
mlextended_double *data;
int *dimensions;
char **heads;
int depth;
if(! WSGetReal128Array(lp, &data, &dimensions, &heads))
{ /* Unable to get the array from lp */ }
/* ... */
WSReleaseReal128Array(lp, data, dimensions, heads, depth);
}