MLReleaseReal64List (C 函数)
MLReleaseReal64List 已经被 WSReleaseReal64List 所取代.
void MLReleaseReal64List(MLINK link,double *a,int n)
释放由 MLGetReal64List() 分配的存储长度为 n 的数组 a 的内存.
更多信息
- MLReleaseReal64List() 在 MathLink 标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* read a list of double-precision floating-point numbers from a link and then release the memory to MathLink for deallocation */
void f(MLINK lp)
{
double *data;
int length;
if(! MLGetReal64List(lp, &data, &length))
{ /* unable to read the list of floating-point numbers from lp */ }
/* ... */
MLReleaseReal64List(lp, data, length);
}
参见
C 函数: MLGetReal64List()
技术笔记
历史
2007年引入 (6.0)